lib/httpx/plugins/retries.rb in httpx-1.1.5 vs lib/httpx/plugins/retries.rb in httpx-1.2.0
- old
+ new
@@ -130,9 +130,13 @@
def __retryable_error?(ex)
RETRYABLE_ERRORS.any? { |klass| ex.is_a?(klass) }
end
+ def proxy_error?(request, response)
+ super && !request.retries.positive?
+ end
+
#
# Atttempt to set the request to perform a partial range request.
# This happens if the peer server accepts byte-range requests, and
# the last response contains some body payload.
#