mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
commit
f55df034e6
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user