diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2017-03-04 11:48:05 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-04 11:48:05 +0100 | 
| commit | f71c11559ce99a2f6b3e54dcc0baa2e7044b4fd0 (patch) | |
| tree | ef75fb2781b3b075751f5ec6b45a58b2b09208e8 /web/src/js/flow/utils.js | |
| parent | 78fd5a9dadbf16cebe46243ef706069b857ff3d9 (diff) | |
| parent | 40943f5618d0cc9e5ce100df4620aae9cdc236ac (diff) | |
| download | mitmproxy-f71c11559ce99a2f6b3e54dcc0baa2e7044b4fd0.tar.gz mitmproxy-f71c11559ce99a2f6b3e54dcc0baa2e7044b4fd0.tar.bz2 mitmproxy-f71c11559ce99a2f6b3e54dcc0baa2e7044b4fd0.zip | |
Merge pull request #2081 from s4chin/add-pretty-host
web: Fix #1888
Diffstat (limited to 'web/src/js/flow/utils.js')
| -rw-r--r-- | web/src/js/flow/utils.js | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/web/src/js/flow/utils.js b/web/src/js/flow/utils.js index cd174069..3c38058e 100644 --- a/web/src/js/flow/utils.js +++ b/web/src/js/flow/utils.js @@ -54,16 +54,12 @@ export var MessageUtils = {  };  export var RequestUtils = _.extend(MessageUtils, { -    pretty_host: function (request) { -        //FIXME: Add hostheader -        return request.host; -    },      pretty_url: function (request) {          var port = "";          if (defaultPorts[request.scheme] !== request.port) {              port = ":" + request.port;          } -        return request.scheme + "://" + this.pretty_host(request) + port + request.path; +        return request.scheme + "://" + request.pretty_host + port + request.path;      }  }); | 
