From 821b30c44c3621477dd13586363a2f35c9672129 Mon Sep 17 00:00:00 2001 From: Muffin Date: Tue, 20 Aug 2024 00:39:41 -0500 Subject: [PATCH] Enable utf-8 encoding in html, js content-type --- src/types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.js b/src/types.js index 43f8a20..8d39422 100644 --- a/src/types.js +++ b/src/types.js @@ -9,11 +9,11 @@ const gz = { module.exports = { '.html': { - type: 'text/html', + type: 'text/html; charset=utf-8', encodings: [br, gz] }, '.js': { - type: 'text/javascript', + type: 'text/javascript; charset=utf-8', encodings: [br, gz] }, '.txt': {