Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshcooper/5c47eebba341d8bf5d6b88ce27d42b8a to your computer and use it in GitHub Desktop.
Save joshcooper/5c47eebba341d8bf5d6b88ce27d42b8a to your computer and use it in GitHub Desktop.
diff --git a/lib/puppet/network/http/compression.rb b/lib/puppet/network/http/compression.rb
index e4fd5b9e8a..782cbcb1de 100644
--- a/lib/puppet/network/http/compression.rb
+++ b/lib/puppet/network/http/compression.rb
@@ -18,7 +18,11 @@ module Puppet::Network::HTTP::Compression
# return an uncompressed body if the response has been
# compressed
def uncompress_body(response)
- Puppet.deprecation_warning(_('Puppet::Network::HTTP::Compression is deprecated.'))
+ Puppet.deprecation_warning(_('Puppet::Network::HTTP::Compression::Active#uncompress_body is deprecated.'))
+ File.open('deprecations.txt', 'a') { |f|
+ f.puts caller.join("\n")
+ }
+
case response['content-encoding']
when 'gzip'
# ZLib::GzipReader has an associated encoding, by default Encoding.default_external
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment