diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-08-01 21:48:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 21:48:00 +0200 |
commit | daa24b77b49b4841e1a42918f90f65563f182d12 (patch) | |
tree | 63722948bc5ce91bc7dfd39ce31cce66f9b568b5 | |
parent | e8f836425a64a786f0d68c6b2a0b682e7cf6e00a (diff) | |
download | mitmproxy-daa24b77b49b4841e1a42918f90f65563f182d12.tar.gz mitmproxy-daa24b77b49b4841e1a42918f90f65563f182d12.tar.bz2 mitmproxy-daa24b77b49b4841e1a42918f90f65563f182d12.zip |
Update proxyauth.py
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(): |