aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/client-html.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts
index 3529acf5e..84b4ca97d 100644
--- a/server/lib/client-html.ts
+++ b/server/lib/client-html.ts
@@ -303,7 +303,6 @@ class ClientHtml {
303 303
304 let html = buffer.toString() 304 let html = buffer.toString()
305 305
306 if (paramLang) html = ClientHtml.addHtmlLang(html, paramLang)
307 html = ClientHtml.addManifestContentHash(html) 306 html = ClientHtml.addManifestContentHash(html)
308 html = ClientHtml.addFaviconContentHash(html) 307 html = ClientHtml.addFaviconContentHash(html)
309 html = ClientHtml.addLogoContentHash(html) 308 html = ClientHtml.addLogoContentHash(html)
@@ -555,8 +554,7 @@ function sendHTML (html: string, res: express.Response) {
555} 554}
556 555
557async function serveIndexHTML (req: express.Request, res: express.Response) { 556async function serveIndexHTML (req: express.Request, res: express.Response) {
558 if (req.accepts(ACCEPT_HEADERS) === 'html' || 557 if (req.accepts(ACCEPT_HEADERS) === 'html' || !req.headers.accept) {
559 !req.headers.accept) {
560 try { 558 try {
561 await generateHTMLPage(req, res, req.params.language) 559 await generateHTMLPage(req, res, req.params.language)
562 return 560 return