mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-30 13:05:08 +00:00
style: tighten comments added on this branch
This commit is contained in:
@@ -116,9 +116,8 @@ def test_range_item_ignored_by_server_fails_not_corrupts(server, tmp_path, monke
|
||||
|
||||
|
||||
def test_range_item_spanning_whole_resource_accepts_200(server, tmp_path):
|
||||
# RFC 9110 lets a server ignore Range and answer 200 with the whole resource; when
|
||||
# the slice spans that whole resource the body is byte-identical to the 206, so it
|
||||
# must be kept instead of burning five attempts and failing the track
|
||||
# RFC 9110 lets a server ignore Range and answer 200 with the whole resource; when the
|
||||
# slice spans that resource the body is byte-identical to the 206 and must be kept
|
||||
server.honor_range = False
|
||||
urls = [{"url": _url(server), "headers": {"Range": f"bytes=0-{len(PARENT) - 1}"}}]
|
||||
files = _run(server, tmp_path, urls, max_workers=1)
|
||||
|
||||
Reference in New Issue
Block a user