Skip to content

Commit

Permalink
Bugfix for leaking Proxy-Authorization header to remote host when using
Browse files Browse the repository at this point in the history
tunneling
  • Loading branch information
ivannotes authored and dangra committed Aug 8, 2014
1 parent ed1f376 commit d8793af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scrapy/core/downloader/handlers/http11.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def download_request(self, request):
url = urldefrag(request.url)[0]
method = request.method
headers = TxHeaders(request.headers)
if isinstance(agent, self._TunnelingAgent):
headers.removeHeader('Proxy-Authorization')
bodyproducer = _RequestBodyProducer(request.body) if request.body else None

start_time = time()
Expand Down

0 comments on commit d8793af

Please sign in to comment.