Skip to content

Commit

Permalink
Update v3io/dataplane/request.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gal Topper <[email protected]>
  • Loading branch information
tomerm-iguazio and gtopper authored Feb 7, 2024
1 parent eb497db commit 421baea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v3io/dataplane/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def encode_get_object(container_name, access_key, kwargs):

# if the append flag is passed, add a range header
# offset=0 also requires a range because we may only have the size.
if offset is not None:
num_bytes = kwargs.get("num_bytes")
if offset or num_bytes:
offset = offset or 0
range_value = "bytes=" + str(offset)

num_bytes = kwargs.get("num_bytes")
Expand Down

0 comments on commit 421baea

Please sign in to comment.