Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Expunge user:pass@... from Host header.

In verbose mode, the basic auth user and password would show up in colored
output reporting the Host header, as reported in
  • Loading branch information...
commit 5a037b2e13813b0200a69eaec28f6c47a0f3a079 1 parent 6af42b1
@solidsnack solidsnack authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  httpie/
2  httpie/
@@ -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()]
Please sign in to comment.
Something went wrong with that request. Please try again.