Skip to content

Commit

Permalink
Merge pull request #191 from solidsnack/wip-no-auth-in-host-header
Browse files Browse the repository at this point in the history
Expunge user:pass@... from Host header.
  • Loading branch information
jkbrzt committed Jan 8, 2014
2 parents 7a84163 + 5a037b2 commit b1074cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpie/models.py
Expand Up @@ -155,7 +155,7 @@ def headers(self):
headers = dict(self._orig.headers)

if 'Host' not in headers:
headers['Host'] = url.netloc
headers['Host'] = url.netloc.split('@')[-1]

headers = ['%s: %s' % (name, value)
for name, value in headers.items()]
Expand Down

0 comments on commit b1074cc

Please sign in to comment.