diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-11 14:00:09 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-11 14:00:09 +0200 |
commit | 8bd67ef6af84f322722abba0fe6f68a3ed7a6637 (patch) | |
tree | 9f9a40377d911702e97da2c39608fcf416ba6a1c | |
parent | 0fe87dc5a1c37d98740bf012e5bac09a21862a89 (diff) | |
download | PeerTube-8bd67ef6af84f322722abba0fe6f68a3ed7a6637.tar.gz PeerTube-8bd67ef6af84f322722abba0fe6f68a3ed7a6637.tar.zst PeerTube-8bd67ef6af84f322722abba0fe6f68a3ed7a6637.zip |
Remove uneeded language injection
It's already handled by angular build
-rw-r--r-- | server/lib/client-html.ts | 4 |
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 | ||
557 | async function serveIndexHTML (req: express.Request, res: express.Response) { | 556 | async 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 |