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 a19bccc commit 99c1cc9Copy full SHA for 99c1cc9
1 file changed
lib/request/connect.py
@@ -332,7 +332,7 @@ def getPage(**kwargs):
332
if HTTP_HEADER.ACCEPT not in headers:
333
headers[HTTP_HEADER.ACCEPT] = HTTP_ACCEPT_HEADER_VALUE
334
335
- if HTTP_HEADER.HOST not in headers:
+ if HTTP_HEADER.HOST not in headers or not target:
336
headers[HTTP_HEADER.HOST] = getHostHeader(url)
337
338
if HTTP_HEADER.ACCEPT_ENCODING not in headers:
0 commit comments