Scrapy, a fast high-level web crawling & scraping framework for Python.
Use bytearray for the CONNECT message bytes buffer
Paul Tremberthadb180fbaf7d
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.pyindex 4b02cb16f..b96c8c6fe 100644--- a/scrapy/core/downloader/handlers/http11.py+++ b/scrapy/core/downloader/handlers/http11.py@@ -105,7 +105,7 @@ class TunnelingTCP4ClientEndpoint(TCP4ClientEndpoint):self._tunneledHost = hostself._tunneledPort = portself._contextFactory = contextFactory- self._connectBuffer = b''+ self._connectBuffer = bytearray()def requestTunnel(self, protocol):"""Asks the proxy to open a tunnel."""