lib/httpi/response.rb in httpi-0.9.6 vs lib/httpi/response.rb in httpi-0.9.7

- old
+ new

@@ -48,17 +48,17 @@ private def decode_body return @body = "" if !raw_body || raw_body.empty? - + body = gzipped_response? ? decoded_gzip_body : raw_body @body = dime_response? ? decoded_dime_body(body) : body end # Returns whether the response is gzipped. def gzipped_response? - headers["Content-Encoding"] == "gzip" || raw_body[0..1] == "\x1f\x8b" + headers["Content-Encoding"] == "gzip" end # Returns whether this is a DIME response. def dime_response? headers["Content-Type"] == "application/dime"