Merge pull request #2490 from mitmproxy/issue-2334

fix #2334
This commit is contained in:
Maximilian Hils 2017-08-01 23:39:37 +02:00 committed by GitHub
commit f55df034e6

View File

@ -61,7 +61,7 @@ class ProxyAuth:
- True, if authentication is done as if mitmproxy is a proxy
- 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:
if self.is_proxy_auth():