summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-06-22 03:15:29 -0400
committerCarlton Gibson <carlton.gibson@noumenal.es>2018-06-22 09:15:29 +0200
commit7cdeb23ae7ef2d125276840ff298dbb9683959f2 (patch)
tree74bd36ff5f97a8d32b6843ee9fd3818c44273cbf /django
parentae38777698dd0bf2a9efefef778d5e92d36c8d12 (diff)
Fixed #29511 -- Added charset to JavaScriptCatalog's Content-Type header.
Diffstat (limited to 'django')
-rw-r--r--django/views/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/i18n.py b/django/views/i18n.py
index 89963e8406..3bd240ea3d 100644
--- a/django/views/i18n.py
+++ b/django/views/i18n.py
@@ -284,7 +284,7 @@ class JavaScriptCatalog(View):
) if context['catalog'] else None
context['formats_str'] = indent(json.dumps(context['formats'], sort_keys=True, indent=2))
- return HttpResponse(template.render(Context(context)), 'text/javascript')
+ return HttpResponse(template.render(Context(context)), 'text/javascript; charset="utf-8"')
class JSONCatalog(JavaScriptCatalog):