Ensure SPA HTML files get loaded with UTF-8 encoding

Fixes issues with wrong encoding of the "Loading Funkwhale…" text in index.html
pipelines/26366
Philipp Wolfer 2022-10-17 14:00:57 +02:00 zatwierdzone przez Georg Krause
rodzic e3c81ca397
commit 6a91ea91b2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2970D504B2183D22
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -128,6 +128,7 @@ def get_spa_file(spa_url, name):
response = session.get_session().get(utils.join_url(spa_url, name),)
response.raise_for_status()
response.encoding = "utf-8"
content = response.text
caches["local"].set(cache_key, content, settings.FUNKWHALE_SPA_HTML_CACHE_DURATION)
return content

Wyświetl plik

@ -0,0 +1 @@
Ensure index.html files get loaded with UTF-8 encoding