# HG changeset patch # User Goffi # Date 1632904319 -7200 # Node ID e8c480b0078e8ec823bb2c4d2fe96f929bbaeb7a # Parent 526318c489538550e2430edfc37fc970cca9eb6b server: don't use unordered set for accepted languages: fix 393 diff -r 526318c48953 -r e8c480b0078e libervia/server/pages.py --- 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()