lib/http/features/auto_inflate.rb in http-2.2.2 vs lib/http/features/auto_inflate.rb in http-3.0.0.pre
- old
+ new
@@ -1,10 +1,11 @@
# frozen_string_literal: true
+
module HTTP
module Features
class AutoInflate < Feature
def stream_for(connection, response)
- if %w(deflate gzip x-gzip).include?(response.headers[:content_encoding])
+ if %w[deflate gzip x-gzip].include?(response.headers[:content_encoding])
Response::Inflater.new(connection)
else
connection
end
end