Update proxyScheme assignment

This commit is contained in:
Ajay Mittur 2021-06-14 14:58:19 +00:00 committed by GitHub
parent 065b9b1170
commit 5044549c55
1 changed files with 1 additions and 1 deletions

View File

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