From 62ca89649237cb0aff63b1fd3d7729b42134bdd1 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 31 Oct 2016 01:15:25 -0700 Subject: [PATCH] fix mitmweb --- mitmproxy/tools/web/app.py | 2 +- web/conf.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py index bbdc2bf9f..e085b4a80 100644 --- a/mitmproxy/tools/web/app.py +++ b/mitmproxy/tools/web/app.py @@ -341,7 +341,7 @@ class FlowContentView(RequestHandler): message = getattr(self.flow, message) description, lines, error = contentviews.get_message_content_view( - contentviews.get(content_view.replace('_', ' ')).name, message + content_view.replace('_', ' '), message ) # if error: # add event log diff --git a/web/conf.js b/web/conf.js index cc616a637..1c90b1cf5 100644 --- a/web/conf.js +++ b/web/conf.js @@ -1,8 +1,8 @@ var conf = { src: "src/", - dist: "../mitmproxy/web", - static: "../mitmproxy/web/static", + dist: "../mitmproxy/tools/web", + static: "../mitmproxy/tools/web/static", js: { // Don't package these in the vendor distribution vendor_excludes: [