Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2220afb commit b16b92fCopy full SHA for b16b92f
1 file changed
lib/request/connect.py
@@ -225,6 +225,9 @@ def getPage(**kwargs):
225
226
headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc
227
228
+ if headers[HTTPHEADER.HOST].endswith(':80'):
229
+ headers[HTTPHEADER.HOST] = headers[HTTPHEADER.HOST].split(':')[0]
230
+
231
if auxHeaders:
232
for key, item in auxHeaders.items():
233
headers[key] = item
0 commit comments