lib/infrataster/contexts/http_context.rb in infrataster-0.2.5 vs lib/infrataster/contexts/http_context.rb in infrataster-0.2.6

- old
+ new

@@ -13,9 +13,12 @@ end conn = Faraday.new(options) do |faraday| faraday.request :url_encoded faraday.response :logger, Logger + if resource.inflate_gzip? + faraday.use Infrataster::FaradayMiddleware::Gzip + end faraday.adapter Faraday.default_adapter faraday.basic_auth(*resource.basic_auth) if resource.basic_auth end conn.public_send(resource.method) do |req|