diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-04-20 15:27:39 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-04-20 15:27:39 -0700 |
commit | 49d1bcc8a237e56d9adef62ea0fce35ae3d4b1e8 (patch) | |
tree | 501f0cf151296d43bc3514c19527e7aa8b79f359 /netlib/http | |
parent | c17ccead6db98346fa088f7ca035af24694af659 (diff) | |
download | mitmproxy-49d1bcc8a237e56d9adef62ea0fce35ae3d4b1e8.tar.gz mitmproxy-49d1bcc8a237e56d9adef62ea0fce35ae3d4b1e8.tar.bz2 mitmproxy-49d1bcc8a237e56d9adef62ea0fce35ae3d4b1e8.zip |
fix CONNECT display in upstream mode
Diffstat (limited to 'netlib/http')
-rw-r--r-- | netlib/http/request.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/http/request.py b/netlib/http/request.py index 160ce3a3..6406a980 100644 --- a/netlib/http/request.py +++ b/netlib/http/request.py @@ -178,6 +178,8 @@ class Request(Message): """ The URL string, constructed from the request's URL components """ + if self.first_line_format == "authority": + return "%s:%d" % (self.host, self.port) return utils.unparse_url(self.scheme, self.host, self.port, self.path) @url.setter |