kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Ensure SPA HTML files get loaded with UTF-8 encoding
Fixes issues with wrong encoding of the "Loading Funkwhale…" text in index.htmlpipelines/26366
rodzic
e3c81ca397
commit
6a91ea91b2
|
@ -128,6 +128,7 @@ def get_spa_file(spa_url, name):
|
||||||
|
|
||||||
response = session.get_session().get(utils.join_url(spa_url, name),)
|
response = session.get_session().get(utils.join_url(spa_url, name),)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
response.encoding = "utf-8"
|
||||||
content = response.text
|
content = response.text
|
||||||
caches["local"].set(cache_key, content, settings.FUNKWHALE_SPA_HTML_CACHE_DURATION)
|
caches["local"].set(cache_key, content, settings.FUNKWHALE_SPA_HTML_CACHE_DURATION)
|
||||||
return content
|
return content
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Ensure index.html files get loaded with UTF-8 encoding
|
Ładowanie…
Reference in New Issue