We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfccf91 commit 1c67f61Copy full SHA for 1c67f61
lib/protocol/http/accept_encoding.rb
@@ -49,11 +49,10 @@ def call(request)
49
50
if body = response.body and !body.empty?
51
if content_encoding = response.headers[CONTENT_ENCODING]
52
- # Process encodings from the end (last applied first)
53
- # Remove encodings as we successfully decode them
+ # Process encodings in reverse order and remove them when they are decoded:
54
while name = content_encoding.last
55
- # Look up wrapper with case-insensitive matching
56
- wrapper = @wrappers[name] || @wrappers[name.downcase]
+ # Look up wrapper with case-insensitive matching:
+ wrapper = @wrappers[name.downcase]
57
58
if wrapper
59
body = wrapper.call(body)
0 commit comments