lib/ezclient/request.rb in ezclient-0.9.0 vs lib/ezclient/request.rb in ezclient-0.9.1
- old
+ new
@@ -95,11 +95,10 @@
def retry_on_connection_error
# This may result in 2 requests reaching the server so I hope HTTP fixes it
# https://github.com/httprb/http/issues/459
yield
- rescue HTTP::ConnectionError => error
- raise unless error.message == "couldn't read response headers"
+ rescue HTTP::ConnectionError
yield
end
def timeout
options[:timeout]&.to_f