proxy: refactor a collapsible_match (#1214)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							c666b293a1
						
					
				
				
					commit
					544282a0b4
				
			| @@ -279,11 +279,8 @@ impl Proxy { | |||||||
|             // Custom *may* match 'http', so assume so. |             // Custom *may* match 'http', so assume so. | ||||||
|             | Intercept::Custom(_) => true, |             | Intercept::Custom(_) => true, | ||||||
|             Intercept::System(ref system) => { |             Intercept::System(ref system) => { | ||||||
|                 if let Some(proxy) = system.get("http") { |                 if let Some(ProxyScheme::Http { auth, .. }) = system.get("http") { | ||||||
|                     match proxy { |                     auth.is_some() | ||||||
|                         ProxyScheme::Http { auth, .. } => auth.is_some(), |  | ||||||
|                         _ => false, |  | ||||||
|                     } |  | ||||||
|                 } else { |                 } else { | ||||||
|                     false |                     false | ||||||
|                 } |                 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user