diff --git a/rama-http-backend/src/client/proxy/layer/proxy_connector/proxy_error.rs b/rama-http-backend/src/client/proxy/layer/proxy_connector/proxy_error.rs index c732cdf6..a9752127 100644 --- a/rama-http-backend/src/client/proxy/layer/proxy_connector/proxy_error.rs +++ b/rama-http-backend/src/client/proxy/layer/proxy_connector/proxy_error.rs @@ -59,7 +59,7 @@ impl std::error::Error for HttpProxyError { // but do allow custom errors (e.g. because IP is blocked) let err_ref = err.source().unwrap_or_else(|| err.as_ref()); if err_ref.is::() { - None + Some(self) } else { Some(err_ref) }