chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::HTTP::Decompressor#gzip_disabled?
gzip is disabled using the disable_gzip => true option in the constructor. When gzip is disabled, no 'Accept-Encoding' header will be set, and the response will not be decompressed, no matter what the Content-Encoding header of the response is. The intended use case for this is to work around situations where you request +file.tar.gz+, but the server responds with a content type of tar and a content encoding of gzip, tricking the client into decompressing the response so you end up with a tar archive (no gzip) named file.tar.gz
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/http/decompressor.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--HTTP--Decompressor-gzip_disabled--for-pr
# Commit to gitgit add lib/chef/http/decompressor.rbgit commit -m "better docs for Chef::HTTP::Decompressor#gzip_disabled?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--HTTP--Decompressor-gzip_disabled--for-pr
hub pull-request
# Celebrate!