From 02ba76ea0904b15f01956587a6ebbde43ee97909 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 17 Apr 2016 15:44:37 -0700 Subject: fix proxy authorization bug, refs #988 --- mitmproxy/protocol/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3