mirror of https://github.com/scrapy/scrapy.git
Merge branch 'http-proxy-schema' of https://github.com/ajaymittur28/scrapy into http-proxy-schema
This commit is contained in:
commit
eb324fadad
|
|
@ -301,7 +301,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