diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-24 10:49:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-24 10:49:12 +0100 |
commit | 450de91e22ba1388e14e12ada875c94e0c38f5d3 (patch) | |
tree | ca00d4e5ec1915f2bd336103d84c8dac86a34273 /server/lib | |
parent | 17e2705f646f00346bfdbb663876b0f022eaeee3 (diff) | |
download | PeerTube-450de91e22ba1388e14e12ada875c94e0c38f5d3.tar.gz PeerTube-450de91e22ba1388e14e12ada875c94e0c38f5d3.tar.zst PeerTube-450de91e22ba1388e14e12ada875c94e0c38f5d3.zip |
Fix E2E tests
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/client-html.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts index 84b4ca97d..84eb33348 100644 --- a/server/lib/client-html.ts +++ b/server/lib/client-html.ts | |||
@@ -335,6 +335,11 @@ class ClientHtml { | |||
335 | lang = req.acceptsLanguages(POSSIBLE_LOCALES) || getDefaultLocale() | 335 | lang = req.acceptsLanguages(POSSIBLE_LOCALES) || getDefaultLocale() |
336 | } | 336 | } |
337 | 337 | ||
338 | logger.debug( | ||
339 | 'Serving %s HTML language', buildFileLocale(lang), | ||
340 | { cookie: req.cookies?.clientLanguage, paramLang, acceptLanguage: req.headers['accept-language'] } | ||
341 | ) | ||
342 | |||
338 | return join(__dirname, '../../../client/dist/' + buildFileLocale(lang) + '/index.html') | 343 | return join(__dirname, '../../../client/dist/' + buildFileLocale(lang) + '/index.html') |
339 | } | 344 | } |
340 | 345 | ||