diff --git a/mitmproxy/tools/web/templates/index.html b/mitmproxy/tools/web/templates/index.html index 0e611b0ef..ccdef240d 100644 --- a/mitmproxy/tools/web/templates/index.html +++ b/mitmproxy/tools/web/templates/index.html @@ -1,19 +1,15 @@ - - - - mitmproxy - - - - - - - -
- + + + + mitmproxy + + + + + + + +
+ diff --git a/test/mitmproxy/tools/web/test_app.py b/test/mitmproxy/tools/web/test_app.py index eac14fa28..4a8bf5199 100644 --- a/test/mitmproxy/tools/web/test_app.py +++ b/test/mitmproxy/tools/web/test_app.py @@ -86,10 +86,10 @@ class TestApp(tornado.testing.AsyncHTTPTestCase): ) def test_index(self): - response: httpclient.HTTPResponse = self.fetch("/") + response = self.fetch("/") assert response.code == 200 - assert '"/' not in str( - response.body + assert ( + b'="/' not in response.body ), "HTML content should not contain root-relative paths" def test_filter_help(self): diff --git a/web/gulpfile.js b/web/gulpfile.js index f59de42b3..1ab0995dc 100644 --- a/web/gulpfile.js +++ b/web/gulpfile.js @@ -82,14 +82,6 @@ function copy() { .pipe(gulp.dest("../mitmproxy/tools/web/static")); } -const template_src = "src/templates/*"; - -function templates() { - return gulp - .src(template_src, { base: "src/" }) - .pipe(gulp.dest("../mitmproxy/tools/web")); -} - const peg_src = "src/js/filt/*.peg"; function peg() { @@ -114,7 +106,6 @@ const dev = gulp.parallel( styles_app_dev, peg, scripts_dev, - templates, ); const prod = gulp.parallel( @@ -123,7 +114,6 @@ const prod = gulp.parallel( styles_app_prod, peg, scripts_prod, - templates, ); exports.dev = dev; @@ -134,7 +124,6 @@ exports.default = function watch() { gulp.watch(["src/css/vendor*"], opts, styles_vendor_dev); gulp.watch(["src/css/**"], opts, styles_app_dev); gulp.watch(["src/js/**"], opts, scripts_dev); - gulp.watch(template_src, opts, templates); gulp.watch(peg_src, opts, peg); gulp.watch(copy_src, opts, copy); }; diff --git a/web/src/templates/index.html b/web/src/templates/index.html deleted file mode 100644 index 0e611b0ef..000000000 --- a/web/src/templates/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - mitmproxy - - - - - - - -
- -