Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #874 -- Changed debug views to use text/html mime-type instead …

…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...
commit ceecf0f7def73c79fed70b46e815dc0315b04fb5 1 parent 57981fb
Adrian Holovaty authored November 22, 2005

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/views/debug.py
4  django/views/debug.py
@@ -55,7 +55,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
55 55
         'settings' : settings_dict,
56 56
 
57 57
     })
58  
-    return HttpResponseServerError(t.render(c))
  58
+    return HttpResponseServerError(t.render(c), mimetype='text/html')
59 59
 
60 60
 def technical_404_response(request, exception):
61 61
     """
@@ -76,7 +76,7 @@ def technical_404_response(request, exception):
76 76
         'request_protocol' : os.environ.get("HTTPS") == "on" and "https" or "http",
77 77
         'settings' : dict([(k, getattr(settings, k)) for k in dir(settings) if k.isupper()]),
78 78
     })
79  
-    return HttpResponseNotFound(t.render(c))
  79
+    return HttpResponseNotFound(t.render(c), mimetype='text/html')
80 80
 
81 81
 def _get_lines_from_file(filename, lineno, context_lines):
82 82
     """

0 notes on commit ceecf0f

Please sign in to comment.
Something went wrong with that request. Please try again.