Skip to content

Commit 64a6e5a

Browse files
committed
well. The mock server was wrong the whole time...
1 parent c0de491 commit 64a6e5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/mock_s3_server/mock_s3_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ def handle_get_object(wrapper, request, parsed_path, head_request=False):
425425
start_range = 0
426426
end_range = 65535
427427

428-
data_length = end_range - start_range
428+
# Range is inclusive, the length is end - start + 1
429+
data_length = end_range - start_range + 1
429430

430431
if parsed_path.path == "/get_object_modified":
431432
return handle_get_object_modified(start_range, end_range, request)

0 commit comments

Comments
 (0)