mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
1 parent
8c892edd4f
commit
040d981f00
2 files changed
+18
-2
No files matched your search
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user