Scrapy, a fast high-level web crawling & scraping framework for Python.
Pass proxy URI to ProxyAgent as bytes
Paul Tremberthe162c1ff40bf
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.pyindex a4b077b57..7b77d82da 100644--- a/scrapy/core/downloader/handlers/http11.py+++ b/scrapy/core/downloader/handlers/http11.py@@ -283,7 +283,7 @@ class ScrapyAgent(object):contextFactory=self._contextFactory, connectTimeout=timeout,bindAddress=bindaddress, pool=self._pool)else:- return self._ProxyAgent(reactor, proxyURI=proxy,+ return self._ProxyAgent(reactor, proxyURI=to_bytes(proxy, encoding='ascii'),connectTimeout=timeout, bindAddress=bindaddress, pool=self._pool)return self._Agent(reactor, contextFactory=self._contextFactory,