From 68fd370b2e20f18865cc5df85ab4e029a5e5201a Mon Sep 17 00:00:00 2001 From: AN Long Date: Mon, 29 Nov 2021 21:25:31 +0800 Subject: [PATCH] Fix content type for index page --- pypprof/net_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypprof/net_http.py b/pypprof/net_http.py index da38f77..04ef141 100644 --- a/pypprof/net_http.py +++ b/pypprof/net_http.py @@ -84,7 +84,7 @@ def index(self): self.send_response(200) self.send_header("X-Content-Type-Options", "nosniff") - self.send_header("Content-Type", "text/plain; charset=utf-8") + self.send_header("Content-Type", "text/html; charset=utf-8") self.end_headers() self.wfile.write(body.encode("utf-8"))