From 43bd9ee679e8f422ac420bbf360d8c425fb6cb84 Mon Sep 17 00:00:00 2001 From: Benjamin Chrobot Date: Tue, 3 Sep 2019 12:35:27 -0400 Subject: [PATCH] fix: add content-type response header --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8c4c017..a19db2b 100644 --- a/index.js +++ b/index.js @@ -64,7 +64,10 @@ async function route(path) { status: 200 }); } else { - return new Response(html, { status: 200 }); + return new Response(html, { + status: 200, + headers: { "content-type": "text/html" } + }); } } }