Skip to content

Commit

Permalink
Expunge user:pass@... from Host header.
Browse files Browse the repository at this point in the history
In verbose mode, the basic auth user and password would show up in colored
output reporting the Host header, as reported in
#169
  • Loading branch information
solidsnack committed Jan 6, 2014
1 parent 6af42b1 commit 5a037b2
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 5a037b2

Please sign in to comment.