diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-04-17 15:44:37 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-04-17 15:44:37 -0700 |
commit | 02ba76ea0904b15f01956587a6ebbde43ee97909 (patch) | |
tree | 91a7b51eccf1e6048c82de90502502734be6bb6d | |
parent | 423c076c61140c2e953313793263a4cac71e33ca (diff) | |
download | mitmproxy-02ba76ea0904b15f01956587a6ebbde43ee97909.tar.gz mitmproxy-02ba76ea0904b15f01956587a6ebbde43ee97909.tar.bz2 mitmproxy-02ba76ea0904b15f01956587a6ebbde43ee97909.zip |
fix proxy authorization bug, refs #988
-rw-r--r-- | mitmproxy/protocol/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/protocol/http.py b/mitmproxy/protocol/http.py index bdda80cd..13556e9c 100644 --- a/mitmproxy/protocol/http.py +++ b/mitmproxy/protocol/http.py @@ -184,7 +184,7 @@ class HttpLayer(Layer): flow.request = request # set upstream auth if self.mode == "upstream" and self.config.upstream_auth is not None: - self.data.headers["Proxy-Authorization"] = self.config.upstream_auth + flow.request.headers["Proxy-Authorization"] = self.config.upstream_auth self.process_request_hook(flow) if not flow.response: |