Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,8 @@ def _initial_request(self):
# If the file is small, the download is complete at this point.
# If file size is large, download the rest of the file in chunks.
if response.properties.size != self.size:
# Lock on the etag. This can be overriden by the user by specifying '*'
if self._request_options.get("modified_access_conditions"):
if not self._request_options["modified_access_conditions"].if_match:
self._request_options["modified_access_conditions"].if_match = response.properties.etag
self._request_options["modified_access_conditions"].if_match = response.properties.etag
else:
self._download_complete = True
return response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,8 @@ async def _initial_request(self):
# If the file is small, the download is complete at this point.
# If file size is large, download the rest of the file in chunks.
if response.properties.size != self.size:
# Lock on the etag. This can be overriden by the user by specifying '*'
if self._request_options.get('modified_access_conditions'):
if not self._request_options['modified_access_conditions'].if_match:
self._request_options['modified_access_conditions'].if_match = response.properties.etag
self._request_options['modified_access_conditions'].if_match = response.properties.etag
else:
self._download_complete = True
return response
Expand Down
Loading