fix(server): content-type on responding html (#708)

This commit is contained in:
Trim21
2023-12-12 20:37:49 +08:00
committed by GitHub
parent b0dafe2f55
commit 7ad8e27967
+1 -1
View File
@@ -64,7 +64,7 @@ const constructRoutes = async (fastify: FastifyInstance) => {
'Cache-Control': 'no-cache, no-store, must-revalidate',
Pragma: 'no-cache',
Expires: '0',
'content-type': 'html',
'content-type': 'text/html; charset=UTF-8',
};
fastify.get(`${servedPath}login`, (_req, res) => {