fix proxy authorization bug, refs #988

This commit is contained in:
Maximilian Hils 2016-04-17 15:44:37 -07:00
parent 423c076c61
commit 02ba76ea09
1 changed files with 1 additions and 1 deletions

View File

@ -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: