mirror of https://github.com/scrapy/scrapy.git
Use bytearray for the CONNECT message bytes buffer
This commit is contained in:
parent
a586243758
commit
adb180fbaf
|
|
@ -105,7 +105,7 @@ class TunnelingTCP4ClientEndpoint(TCP4ClientEndpoint):
|
|||
self._tunneledHost = host
|
||||
self._tunneledPort = port
|
||||
self._contextFactory = contextFactory
|
||||
self._connectBuffer = b''
|
||||
self._connectBuffer = bytearray()
|
||||
|
||||
def requestTunnel(self, protocol):
|
||||
"""Asks the proxy to open a tunnel."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue