diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-08-01 23:39:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 23:39:37 +0200 |
commit | f55df034e66b3b1490fffdba5a4664c4d8dd1433 (patch) | |
tree | 49140b35d606d3e5b52a9e98e743dc5121f5cf5e | |
parent | 422c6de6cc9d321a51d12434ad41a2f4f4710f0a (diff) | |
parent | daa24b77b49b4841e1a42918f90f65563f182d12 (diff) | |
download | mitmproxy-f55df034e66b3b1490fffdba5a4664c4d8dd1433.tar.gz mitmproxy-f55df034e66b3b1490fffdba5a4664c4d8dd1433.tar.bz2 mitmproxy-f55df034e66b3b1490fffdba5a4664c4d8dd1433.zip |
Merge pull request #2490 from mitmproxy/issue-2334
fix #2334
-rw-r--r-- | mitmproxy/addons/proxyauth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/addons/proxyauth.py b/mitmproxy/addons/proxyauth.py index 5f884b55..64233e88 100644 --- a/mitmproxy/addons/proxyauth.py +++ b/mitmproxy/addons/proxyauth.py @@ -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(): |