bug fix ('Host' header was being set to the conf.hostname for all getPages causing problems in some cases when retrieved page was not coming from that same Host)

This commit is contained in:
Miroslav Stampar
2011-05-13 01:01:53 +00:00
parent f11d5c91e3
commit a7d7be5ce0
3 changed files with 3 additions and 3 deletions

View File

@@ -178,6 +178,8 @@ class Connect:
if kb.proxyAuthHeader:
headers[HTTPHEADER.PROXY_AUTHORIZATION] = kb.proxyAuthHeader
headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc
if auxHeaders:
for key, item in auxHeaders.items():
headers[key] = item