diff options
author | Matthew Shao <me@matshao.com> | 2017-08-14 10:11:48 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-08-14 12:21:11 +0800 |
commit | cbdddefcc8f3ad19e50da5a31532c8abb0cb36f8 (patch) | |
tree | 6c33ba3ec474e73b74d39ad9fdfe2a9cda54a777 /web/src | |
parent | 7d92cdf3bb349b8621d4f96cca87eb2b132b24b4 (diff) | |
download | mitmproxy-cbdddefcc8f3ad19e50da5a31532c8abb0cb36f8.tar.gz mitmproxy-cbdddefcc8f3ad19e50da5a31532c8abb0cb36f8.tar.bz2 mitmproxy-cbdddefcc8f3ad19e50da5a31532c8abb0cb36f8.zip |
[web] change the path name like `_flows` to `flows.json`.
Diffstat (limited to 'web/src')
-rw-r--r-- | web/src/js/flow/utils.js | 4 | ||||
-rw-r--r-- | web/src/js/utils.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/src/js/flow/utils.js b/web/src/js/flow/utils.js index 9d4e1012..cb37822a 100644 --- a/web/src/js/flow/utils.js +++ b/web/src/js/flow/utils.js @@ -51,8 +51,8 @@ export var MessageUtils = { } if (global.MITMWEB_STATIC) { let url = view ? - `/flows/${flow.id}/${message}/content/${view}` : - `/flows/${flow.id}/${message}/_content` + `/flows/${flow.id}/${message}/content/${view}.json` : + `/flows/${flow.id}/${message}/content.json` return url; } else { return `/flows/${flow.id}/${message}/content` + (view ? `/${view}` : ''); diff --git a/web/src/js/utils.js b/web/src/js/utils.js index 68daa1ad..505f74df 100644 --- a/web/src/js/utils.js +++ b/web/src/js/utils.js @@ -86,7 +86,7 @@ export function fetchApi(url, options={}) { if (global.MITMWEB_STATIC) { let path = url.split('/'), filename = path.pop() - filename = '_' + filename + filename += '.json' path.push(filename) let new_url = path.join('/') return _fetchApi(new_url, options) |