diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.py index 617a68ea4..926d8b655 100644 --- a/scrapy/core/downloader/handlers/http11.py +++ b/scrapy/core/downloader/handlers/http11.py @@ -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()