Skip to content

Commit

Permalink
fix: add content-type response header
Browse files Browse the repository at this point in the history
  • Loading branch information
bchrobot committed Sep 3, 2019
1 parent 48befb2 commit 43bd9ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
});
}
}
}
Expand Down

0 comments on commit 43bd9ee

Please sign in to comment.