Add Zlib::GzipFile::Error to the list of errors that may be raised by net/http

Closes jnunemaker/twitter#276
This commit is contained in:
Erik Michaels-Ober 2012-06-29 09:35:25 -06:00
parent ffa01e253a
commit 2274fe2105

View File

@ -17,7 +17,8 @@ module Faraday
Net::HTTPBadResponse,
Net::HTTPHeaderSyntaxError,
Net::ProtocolError,
SocketError
SocketError,
Zlib::GzipFile::Error,
]
NET_HTTP_EXCEPTIONS << OpenSSL::SSL::SSLError if defined?(OpenSSL)