Skip to content

Commit

Permalink
Disable internal checksum validation in GCS client (#96)
Browse files Browse the repository at this point in the history
CloudFiles does checksum validation itself, so disable checksun inside
the GCS client.
  • Loading branch information
ranlu committed Sep 6, 2023
1 parent 29e73c6 commit 75ae21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudfiles/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def get_file(self, file_path, start=None, end=None):
end = int(end - 1)

try:
content = blob.download_as_bytes(start=start, end=end, raw_download=True)
content = blob.download_as_bytes(start=start, end=end, raw_download=True, checksum=None)
except google.cloud.exceptions.NotFound as err:
return (None, None, None, None)

Expand Down

0 comments on commit 75ae21d

Please sign in to comment.