From 28f82d052dc35c9dcb0cdcc393728e5cfca1df34 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 18 Mar 2014 19:38:02 +0100 Subject: fix display bugs (fixes #243) --- libmproxy/protocol/http.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmproxy/protocol/http.py') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index ded2362e..a1be6a17 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -485,6 +485,8 @@ class HTTPRequest(HTTPMessage): If hostheader is True, we use the value specified in the request Host header to construct the URL. """ + if self.form_out == "authority": # upstream proxy mode + return "%s:%s" % (self.get_host(hostheader), self.get_port()) return utils.unparse_url(self.get_scheme(), self.get_host(hostheader), self.get_port(), -- cgit v1.2.3