Mercurial > libervia-web
diff libervia/server/pages.py @ 1455:e8c480b0078e
server: don't use unordered set for accepted languages:
fix 393
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Sep 2021 10:31:59 +0200 |
parents | 1a5410981c45 |
children | 284522d8af44 |
line wrap: on
line diff
--- a/libervia/server/pages.py Mon Aug 02 22:08:56 2021 +0200 +++ b/libervia/server/pages.py Wed Sep 29 10:31:59 2021 +0200 @@ -1709,7 +1709,7 @@ accept_language = request.getHeader("accept-language") if not accept_language: return - accepted = {a.strip() for a in accept_language.split(',')} + accepted = [a.strip() for a in accept_language.split(',')] available = [str(l) for l in self.host.renderer.translations] for lang in accepted: lang = lang.split(';')[0].strip().lower()