GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — feat(blob.py): auto-populate standard headers for non-chunked downloads by william-silversmith · Pull Request #204 · googleapis/python-storage
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Conversation
|
|
@tseaver would these unit tests be sufficient? I can get more involved if necessary. I had trouble invoking _do_download, it was interacting strangely with "MagicMock" and dying on closing a file stream. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@william-silversmith Thanks, that new test was sufficient. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm a little confused because 806-808 have to be evaluated for the crc32c and md5_hash tests to pass. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@googlebot I consent |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@googlebot I fixed it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I could try force pushing a double quote update that removes you as an author if that would be okay with you? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@william-silversmith Sure, WFM. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
W00t! Thanks for persevering, @william-silversmith . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Excited thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ds (googleapis#204) Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-storage/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes googleapis#24 🦕 This PR autopopulates the following fields for non-chunked downloads based on the server header response: ``` blob.content_encoding blob.content_type blob.cache_control blob.storage_class blob.content_language blob.md5_hash blob.crc32c ```
…ds (googleapis#204) Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-storage/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes googleapis#24 🦕 This PR autopopulates the following fields for non-chunked downloads based on the server header response: ``` blob.content_encoding blob.content_type blob.cache_control blob.storage_class blob.content_language blob.md5_hash blob.crc32c ```
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Storage: Capture relevant headers to blob properties during download
There was an error while loading. Please reload this page.