Skip to content

Commit

Permalink
Merge pull request #443 from tylerb/master
Browse files Browse the repository at this point in the history
Return if gzip response body is nil
  • Loading branch information
greatuserongithub committed Nov 5, 2015
2 parents 82b2f74 + b219c68 commit ae7d2cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/httparty/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def handle_response(body, &block)
# Inspired by Ruby 1.9
def handle_deflation
return if response_redirects?
return if last_response.body.nil?

case last_response["content-encoding"]
when "gzip", "x-gzip"
Expand Down

0 comments on commit ae7d2cf

Please sign in to comment.