mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复_make_response()中自动设置host错误的bug
This commit is contained in:
parent
d6465c412d
commit
09c98d8cf6
@ -200,11 +200,11 @@ class SessionPage(object):
|
||||
if 'referer' not in keys:
|
||||
kwargs['headers']['Referer'] = self._url
|
||||
if 'host' not in keys:
|
||||
kwargs['headers']['Host'] = urlparse(self._url).hostname
|
||||
kwargs['headers']['Host'] = urlparse(url).hostname
|
||||
else:
|
||||
kwargs['headers'] = self.session.headers
|
||||
kwargs['headers']['Referer'] = self._url
|
||||
kwargs['headers']['Host'] = urlparse(self._url).hostname
|
||||
kwargs['headers']['Host'] = urlparse(url).hostname
|
||||
|
||||
try:
|
||||
r = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user