changeset 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 526318c48953
children 284522d8af44
files libervia/server/pages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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()