From 8bd67ef6af84f322722abba0fe6f68a3ed7a6637 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 11 Oct 2021 14:00:09 +0200 Subject: [PATCH] Remove uneeded language injection It's already handled by angular build --- server/lib/client-html.ts | 4 +--- 1 file changed, 1 insertion(+), 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 { let html = buffer.toString() - if (paramLang) html = ClientHtml.addHtmlLang(html, paramLang) html = ClientHtml.addManifestContentHash(html) html = ClientHtml.addFaviconContentHash(html) html = ClientHtml.addLogoContentHash(html) @@ -555,8 +554,7 @@ function sendHTML (html: string, res: express.Response) { } async function serveIndexHTML (req: express.Request, res: express.Response) { - if (req.accepts(ACCEPT_HEADERS) === 'html' || - !req.headers.accept) { + if (req.accepts(ACCEPT_HEADERS) === 'html' || !req.headers.accept) { try { await generateHTMLPage(req, res, req.params.language) return