mirror of https://github.com/scrapy/scrapy.git
Update proxyScheme assignment
This commit is contained in:
parent
065b9b1170
commit
5044549c55
|
|
@ -319,7 +319,7 @@ class ScrapyAgent:
|
|||
pool=self._pool,
|
||||
)
|
||||
else:
|
||||
proxyScheme = b'http' if not proxyScheme else proxyScheme
|
||||
proxyScheme = proxyScheme or b'http'
|
||||
proxyHost = to_bytes(proxyHost, encoding='ascii')
|
||||
proxyPort = to_bytes(str(proxyPort), encoding='ascii')
|
||||
proxyURI = urlunparse((proxyScheme, proxyNetloc, proxyParams, '', '', ''))
|
||||
|
|
|
|||
Loading…
Reference in New Issue