diff --git a/httpie/__main__.py b/httpie/__main__.py index 3b5dda13..44f3c117 100644 --- a/httpie/__main__.py +++ b/httpie/__main__.py @@ -55,7 +55,8 @@ def make_request_message(request): """Make an `HTTPMessage` from `requests.models.Request`.""" url = urlparse(request.url) request_headers = dict(request.headers) - request_headers['Host'] = url.netloc + if 'Host' not in request_headers: + request_headers['Host'] = url.netloc return HTTPMessage( line='{method} {path} HTTP/1.1'.format( method=request.method,