text/html over just 'html'

This commit is contained in:
MotorTruck1221 2024-08-02 01:13:18 -06:00
parent 41c344b9a4
commit 3280da6350
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -110,7 +110,7 @@ app.register(fastifyStatic, {
decorateReply: false decorateReply: false
}); });
app.get("/", function(req, reply) { app.get("/", function(req, reply) {
reply.type('html'); reply.type('text/html');
reply.send(paintSource(loadTemplates(tryReadFile(path.join(__dirname, "views", "/?".indexOf(req.url) ? pages[Object.keys(req.query)[0]] || "error.html" : pages.index))))) reply.send(paintSource(loadTemplates(tryReadFile(path.join(__dirname, "views", "/?".indexOf(req.url) ? pages[Object.keys(req.query)[0]] || "error.html" : pages.index)))))
}); });