diff options
| author | Tim Graham <timograham@gmail.com> | 2018-06-25 09:41:04 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-06-25 09:43:39 -0400 |
| commit | 4b3b9fab080f517b7dc41fb933f6eae3e24081ce (patch) | |
| tree | 3980a1eb82c04ac254daffe96216ba0dbad17cab /django | |
| parent | 8e082a6e0b63a1cfdb0bc7b2835c6447123aa239 (diff) | |
[2.0.x] Reverted "Fixed #29511 -- Added charset to JavaScriptCatalog's Content-Type header."
This reverts commit 8e082a6e0b63a1cfdb0bc7b2835c6447123aa239 as it
doesn't qualify for a backport.
Diffstat (limited to 'django')
| -rw-r--r-- | django/views/i18n.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/i18n.py b/django/views/i18n.py index 240059a19f..e121d3038a 100644 --- a/django/views/i18n.py +++ b/django/views/i18n.py @@ -311,7 +311,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; charset="utf-8"') + return HttpResponse(template.render(Context(context)), 'text/javascript') class JSONCatalog(JavaScriptCatalog): |
