Skip to content

Commit

Permalink
update http proxy error: io error = self as src
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Nov 8, 2024
1 parent 3660c26 commit ad2cfbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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::<std::io::Error>() {
None
Some(self)
} else {
Some(err_ref)
}
Expand Down

0 comments on commit ad2cfbf

Please sign in to comment.