Skip to content

Commit

Permalink
Fixed #874 -- Changed debug views to use text/html mime-type instead …
Browse files Browse the repository at this point in the history
…of DEFAULT_CONTENT_TYPE. Thanks, Sune

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Nov 22, 2005
1 parent 57981fb commit ceecf0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/views/debug.py
Expand Up @@ -55,7 +55,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
'settings' : settings_dict, 'settings' : settings_dict,


}) })
return HttpResponseServerError(t.render(c)) return HttpResponseServerError(t.render(c), mimetype='text/html')


def technical_404_response(request, exception): def technical_404_response(request, exception):
""" """
Expand All @@ -76,7 +76,7 @@ def technical_404_response(request, exception):
'request_protocol' : os.environ.get("HTTPS") == "on" and "https" or "http", 'request_protocol' : os.environ.get("HTTPS") == "on" and "https" or "http",
'settings' : dict([(k, getattr(settings, k)) for k in dir(settings) if k.isupper()]), 'settings' : dict([(k, getattr(settings, k)) for k in dir(settings) if k.isupper()]),
}) })
return HttpResponseNotFound(t.render(c)) return HttpResponseNotFound(t.render(c), mimetype='text/html')


def _get_lines_from_file(filename, lineno, context_lines): def _get_lines_from_file(filename, lineno, context_lines):
""" """
Expand Down

0 comments on commit ceecf0f

Please sign in to comment.