diff options
| author | partizan <serg.partizan@gmail.com> | 2017-06-05 21:43:40 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-05 14:43:40 -0400 |
| commit | ff099f9db8fc88966904035d37b1431af4ad35fd (patch) | |
| tree | 1d10da153c49aae9ef2c6cea86b2057389ed2fdc /django | |
| parent | 6352d06cd04e151c2ee984eb0bdaa7e8d6824235 (diff) | |
Fixed #28271 -- Added charset to technical_500_response() AJAX response.
Diffstat (limited to 'django')
| -rw-r--r-- | django/views/debug.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index d3361486cb..5fa412d436 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -86,7 +86,7 @@ def technical_500_response(request, exc_type, exc_value, tb, status_code=500): reporter = ExceptionReporter(request, exc_type, exc_value, tb) if request.is_ajax(): text = reporter.get_traceback_text() - return HttpResponse(text, status=status_code, content_type='text/plain') + return HttpResponse(text, status=status_code, content_type='text/plain; charset=utf-8') else: html = reporter.get_traceback_html() return HttpResponse(html, status=status_code, content_type='text/html') |
