lib/async/http/accept_encoding.rb in async-http-0.23.3 vs lib/async/http/accept_encoding.rb in async-http-0.24.0

- old
+ new

@@ -42,15 +42,13 @@ request.headers['accept-encoding'] = @accept_encoding response = super if !response.body.empty? and content_encoding = response.headers['content-encoding'] - encodings = content_encoding.split(/\s*,\s*/) - body = response.body # We want to unwrap all encodings - encodings.reverse_each do |name| + content_encoding.reverse_each do |name| if wrapper = @wrappers[name] body = wrapper.call(body) end end