mirror of
https://github.com/openharmony/third_party_rust_reqwest.git
synced 2026-07-20 01:03:35 -04:00
proxy: refactor a collapsible_match (#1214)
This commit is contained in:
committed by
GitHub
parent
121f41a6f2
commit
b507fc535a
+2
-5
@@ -279,11 +279,8 @@ impl Proxy {
|
||||
// Custom *may* match 'http', so assume so.
|
||||
| Intercept::Custom(_) => true,
|
||||
Intercept::System(ref system) => {
|
||||
if let Some(proxy) = system.get("http") {
|
||||
match proxy {
|
||||
ProxyScheme::Http { auth, .. } => auth.is_some(),
|
||||
_ => false,
|
||||
}
|
||||
if let Some(ProxyScheme::Http { auth, .. }) = system.get("http") {
|
||||
auth.is_some()
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user