lib/zendesk_api/middleware/response/gzip.rb in zendesk_api-0.1.7 vs lib/zendesk_api/middleware/response/gzip.rb in zendesk_api-0.1.8

- old
+ new

@@ -1,8 +1,10 @@ require 'faraday_middleware/response_middleware' module ZendeskAPI + # @private module Middleware + # @private module Response # Faraday middleware to handle content-encoding = gzip class Gzip < FaradayMiddleware::ResponseMiddleware define_parser do |body| Zlib::GzipReader.new(StringIO.new(body)).read