mirror of https://github.com/scrapy/scrapy.git
Bugfix for leaking Proxy-Authorization header to remote host when using
tunneling
This commit is contained in:
parent
ed1f376d2b
commit
d8793afccf
|
|
@ -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…
Reference in New Issue