diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-03-27 15:30:19 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-03-27 15:30:19 +0100 |
commit | 42cd942b64e53db9feb5f6c8b2a95669e97b1230 (patch) | |
tree | c0b2714a103ad57a9b9c21cf4d4b4c834e77df0d /web/src/js/flow | |
parent | 04f2467e84905d44483469cf43ada4ec44faa203 (diff) | |
download | mitmproxy-42cd942b64e53db9feb5f6c8b2a95669e97b1230.tar.gz mitmproxy-42cd942b64e53db9feb5f6c8b2a95669e97b1230.tar.bz2 mitmproxy-42cd942b64e53db9feb5f6c8b2a95669e97b1230.zip |
web: initial attempt at header editor
Diffstat (limited to 'web/src/js/flow')
-rw-r--r-- | web/src/js/flow/utils.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/src/js/flow/utils.js b/web/src/js/flow/utils.js index aa91e3b6..d72febaa 100644 --- a/web/src/js/flow/utils.js +++ b/web/src/js/flow/utils.js @@ -80,6 +80,9 @@ var parseUrl = function (url) { //there are many correct ways to parse a URL, //however, a mitmproxy user may also wish to generate a not-so-correct URL. ;-) var parts = parseUrl_regex.exec(url); + if(!parts){ + return false; + } var scheme = parts[1], host = parts[2], |