diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-12-30 21:51:07 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-12-30 21:51:07 +1300 |
commit | bc8687deb5f0f9273fc771e79b070f3b49e39fed (patch) | |
tree | 07e67eb7c9f732c0419e57b337c31d2372d12cff /web/src/js/flow | |
parent | d2c7411f065435e2b2b62a70447cb01895fe69d1 (diff) | |
download | mitmproxy-bc8687deb5f0f9273fc771e79b070f3b49e39fed.tar.gz mitmproxy-bc8687deb5f0f9273fc771e79b070f3b49e39fed.tar.bz2 mitmproxy-bc8687deb5f0f9273fc771e79b070f3b49e39fed.zip |
Basic conversion: browserified web app now works.
Diffstat (limited to 'web/src/js/flow')
-rw-r--r-- | web/src/js/flow/utils.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/src/js/flow/utils.js b/web/src/js/flow/utils.js index 113f0b1a..50305482 100644 --- a/web/src/js/flow/utils.js +++ b/web/src/js/flow/utils.js @@ -1,3 +1,5 @@ +var _ = require("lodash"); + var _MessageUtils = { getContentType: function (message) { return this.get_first_header(message, /^Content-Type$/i); @@ -54,4 +56,9 @@ var RequestUtils = _.extend(_MessageUtils, { } }); -var ResponseUtils = _.extend(_MessageUtils, {});
\ No newline at end of file +var ResponseUtils = _.extend(_MessageUtils, {}); + + +module.exports = { + ResponseUtils: ResponseUtils +}
\ No newline at end of file |