Class: FaradayMiddleware::Gzip

Inherits:
ResponseMiddleware
  • Object
show all
Defined in:
lib/badbill/faraday_gzip.rb

Instance Method Summary collapse

Instance Method Details

#parse_response?(env) ⇒ Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/badbill/faraday_gzip.rb', line 12

def parse_response?(env)
  super && env[:response_headers]['content-encoding'] == "gzip"
end