aboutsummaryrefslogtreecommitdiffstats
path: root/tests/views.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-18 17:01:52 +0200
committerAymeric Augustin2013-10-18 17:01:52 +0200
commit186fcb318a87e6e89add597b8dc2d8443a765bc8 (patch)
tree242147f92f340c63ac62913a3c0a03d5c31646b7 /tests/views.py
parentc2c3ccf8987ff4809b770c5329801496d770f27d (diff)
downloaddjango-debug-toolbar-186fcb318a87e6e89add597b8dc2d8443a765bc8.tar.bz2
Ensure the toolbar only outputs valid XML.
This allows using it in websites served with the application/xml+xhtml mime type. Fix #221.
Diffstat (limited to 'tests/views.py')
-rw-r--r--tests/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/views.py b/tests/views.py
index a903bee..8b51706 100644
--- a/tests/views.py
+++ b/tests/views.py
@@ -13,7 +13,7 @@ def execute_sql(request):
def regular_view(request, title):
- content = '<html><head><title>%s</title><body></body></html>' % title
+ content = '<html><head><title>%s</title></head><body></body></html>' % title
return HttpResponse(content)
@@ -26,4 +26,4 @@ def set_session(request):
request.session['où'] = 'où'
if not six.PY3:
request.session['là'.encode('utf-8')] = 'là'.encode('utf-8')
- return HttpResponse('<html><head><title></title><body></body></html>')
+ return HttpResponse('<html><head></head><body></body></html>')