Skip to content

Commit

Permalink
Rescue Zlib::BufError.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Oct 20, 2018
1 parent 82264f5 commit c430c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def self.get(url, options={headers: nil, query: nil})
response = http.request_get(uri.request_uri, headers)
return HTTPResponse.new(response, uri.to_s)
end
rescue Net::OpenTimeout, Net::ReadTimeout, SocketError, Errno::ECONNREFUSED, Errno::ECONNRESET, OpenSSL::SSL::SSLError, EOFError
rescue Net::OpenTimeout, Net::ReadTimeout, SocketError, Errno::ECONNREFUSED, Errno::ECONNRESET, OpenSSL::SSL::SSLError, Zlib::BufError, EOFError
self::ERROR_CLASS ||= HTTPError
raise(self::ERROR_CLASS, $!)
end
Expand Down

0 comments on commit c430c06

Please sign in to comment.