Created
May 20, 2020 21:14
-
-
Save joshcooper/5c47eebba341d8bf5d6b88ce27d42b8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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