vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.4.245/lib/new_relic/agent/new_relic_service.rb
# Decompresses the response from the server, if it is gzip
# encoded, otherwise returns it verbatim
Decompresses the response from the server, if it is gzip
encoded, otherwise returns it verbatim
Decompresses the response from the server if it is gzip encoded otherwise returns it verbatim
def decompress_response(response)
        if response['content-encoding'] != 'gzip'
          ::NewRelic::Agent.logger.debug "Uncompressed content returned"
          response.body
        else
          ::NewRelic::Agent.logger.debug "Decompressing return value"
          i = Zlib::GzipReader.new(StringIO.new(response.body))
          i.read
        end
      end
def decompress_response ( response ) if response [ 'content-encoding' ] != 'gzip' :: NewRelic :: Agent . logger . debug "Uncompressed content returned" response . body else :: NewRelic :: Agent . logger . debug "Decompressing return value" i = Zlib :: GzipReader . new ( StringIO . new ( response . body ) ) i . read end end
Decompresses the response from the server, if it is gzip
encoded, otherwise returns it verbatim
Decompresses the response from the server if it is gzip encoded otherwise returns it verbatim
response