mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-26 07:03:49 +00:00
Bugfix for leaking Proxy-Authorization header to remote host when using
tunneling
This commit is contained in:
parent
40cc875d6d
commit
c1a108b447
@ -166,6 +166,8 @@ class ScrapyAgent(object):
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user