Try to clarify.

This commit is contained in:
Itamar Turner-Trauring 2022-01-20 12:42:26 -05:00
parent 2a2ab1ead7
commit b952e738dd

View File

@ -210,8 +210,10 @@ class StorageClientImmutables(object):
headers=Headers( headers=Headers(
{ {
# The range is inclusive, thus the '- 1'. '*' means "length # The range is inclusive, thus the '- 1'. '*' means "length
# unknown", which isn't technically true but adding it just # unknown", which isn't technically true but it's not clear
# makes things slightly harder for calling API. # there's any value in passing it in. The server has to
# handle this case anyway, and requiring share length means
# a bit more work for the calling API with no benefit.
"content-range": [ "content-range": [
"bytes {}-{}/*".format(offset, offset + len(data) - 1) "bytes {}-{}/*".format(offset, offset + len(data) - 1)
] ]