Update proxyauth.py

fix #2334
This commit is contained in:
Maximilian Hils 2017-08-01 21:48:00 +02:00 committed by GitHub
parent e8f836425a
commit daa24b77b4

View File

@ -61,7 +61,7 @@ class ProxyAuth:
- True, if authentication is done as if mitmproxy is a proxy - True, if authentication is done as if mitmproxy is a proxy
- False, if authentication is done as if mitmproxy is a HTTP server - False, if authentication is done as if mitmproxy is a HTTP server
""" """
return ctx.options.mode in ("regular", "upstream") return ctx.options.mode == "regular" or ctx.options.mode.startswith("upstream:")
def which_auth_header(self) -> str: def which_auth_header(self) -> str:
if self.is_proxy_auth(): if self.is_proxy_auth():