diff options
Diffstat (limited to 'mitmproxy/models/http.py')
-rw-r--r-- | mitmproxy/models/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mitmproxy/models/http.py b/mitmproxy/models/http.py index 394fe51a..0338945b 100644 --- a/mitmproxy/models/http.py +++ b/mitmproxy/models/http.py @@ -192,6 +192,9 @@ class HTTPRequest(MessageMixin, Request): def __hash__(self): return id(self) + def set_auth(self, auth): + self.data.headers.set_all("Proxy-Authorization", (auth,)) + def replace(self, pattern, repl, *args, **kwargs): """ Replaces a regular expression pattern with repl in the headers, the |