Fixed custom Host

Closes #235
This commit is contained in:
Jakub Roztocil committed 2014-06-28 13:24:14 +02:00
1 parent 8c892edd4f
commit 040d981f00
2 files changed
+18 -2

No files matched your search

+1 -2
View File
@@ -102,8 +102,7 @@ class HTTPRequest(HTTPMessage):
)
headers = dict(self._orig.headers)
if 'Host' not in headers:
if 'Host' not in self._orig.headers:
headers['Host'] = url.netloc.split('@')[-1]
headers = ['%s: %s' % (name, value)