From daa24b77b49b4841e1a42918f90f65563f182d12 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 1 Aug 2017 21:48:00 +0200 Subject: [PATCH] Update proxyauth.py fix #2334 --- mitmproxy/addons/proxyauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/addons/proxyauth.py b/mitmproxy/addons/proxyauth.py index 5f884b557..64233e886 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():