Merge branch 'http-proxy-schema' of https://github.com/ajaymittur28/scrapy into http-proxy-schema

This commit is contained in:
ajaymittur28 2021-06-14 21:39:43 +05:30
commit eb324fadad
1 changed files with 1 additions and 1 deletions

View File

@ -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, '', '', ''))