Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable gzip auto decoding

See original GitHub issue

Which service(blob, file, queue) does this issue concern?


Which version of the SDK was used? Please provide the output of pip freeze.

Azure 4.0.0, blob 1.4.0

What problem was encountered?

When downloading a gzipped file that contains Content-Encoding: gzip through get_blob_to_stream, the file is automatically decoded. This was reported at #509. However, I find the workaround not to be maintainable since it messes with private method/classes. I believe this is a valid use-case, one may want a file to be decoded by the browser but not when fetching it through the API.

Have you found a mitigation/solution?


Note: for table service, please post the issue here instead:

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

xiafu-msftcommented, Mar 10, 2021

Hi @zezha-msft Here’s the issue created by azure core after they support this we will enable user to disable auto gzip.

nitelycommented, Mar 10, 2021

We must change my all websites to AWS S3 which support gzip file with minimum transfer and high performance.

The file is decoded after it’s downloaded. Performance is not really affected here. Azure does support gzip, the issue is just the python API doing this auto decoding which is quite unexpected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable Chrome's gzip automatic decompression
Answer. set a new custom header accept-encoding to either: an empty value or. gzip;q=0,deflate;q=0 either should work.
Read more >
How To Optimize Your Site With GZIP Compression
In your browser: In Chrome, open the Developer Tools > Network Tab (Firefox/IE will be similar). Refresh your page, and click the network...
Read more >
GZip Decompress Online to Gzip Decode Text - Code Beautify
Gzip to Decompress tool to gzip decode Online helps to convert Gzip Text to plain Text and helps to save and share Gzip...
Read more >
Chapter 29. GZIP Compression/Decompression -
The client framework can (though not by default - see below) automatically set the Accept-Encoding header to be "gzip, deflate" so you do...
Read more >
How to Enable GZIP Compression to Speed Up WordPress Sites
However, to serve the compressed resources to your users with no hiccups, you must configure your server properly. In a hurry? Save this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found