1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Fix E2E tests

This commit is contained in:
Chocobozzz 2021-11-24 10:49:12 +01:00
parent 17e2705f64
commit 450de91e22
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 15 additions and 3 deletions

View file

@ -335,6 +335,11 @@ class ClientHtml {
lang = req.acceptsLanguages(POSSIBLE_LOCALES) || getDefaultLocale()
}
logger.debug(
'Serving %s HTML language', buildFileLocale(lang),
{ cookie: req.cookies?.clientLanguage, paramLang, acceptLanguage: req.headers['accept-language'] }
)
return join(__dirname, '../../../client/dist/' + buildFileLocale(lang) + '/index.html')
}