-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Storage] Decompression for Binary Response in Download APIs #43587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -745,6 +745,8 @@ async def download_blob( | |||||
| function(current: int, total: int) where current is the number of bytes transferred | ||||||
| so far, and total is the total size of the download. | ||||||
| :paramtype progress_hook: Callable[[int, int], Awaitable[None]] | ||||||
| :keyword bool decompress: If True, any compressed content, identified by the Content-Type header, will be | ||||||
|
||||||
| :keyword bool decompress: If True, any compressed content, identified by the Content-Type header, will be | |
| :keyword bool decompress: If True, any compressed content, identified by the Content-Encoding header, will be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation states that compression is identified by the Content-Type header, but based on the test cases which use 'content_encoding', it appears compression is actually identified by the Content-Encoding header, not Content-Type. The documentation should be corrected to reference Content-Encoding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not quite right. The
Content-Encodingheader specifiesgzipif we are trying to download the content in compressed format. Technically the header isx-ms-blob-content-md5that contains the content...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot is right here