Skip to content

Commit 03cd2de

Browse files
committed
Revert the middleware back to its original state, because no changes are actually needed
1 parent 36a2f1d commit 03cd2de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debug_toolbar/middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import thread
66

77
from django.conf import settings
8+
from django.conf.urls.defaults import include, patterns
89
from django.http import HttpResponseRedirect
910
from django.shortcuts import render_to_response
1011
from django.utils.encoding import smart_unicode
@@ -123,8 +124,7 @@ def process_response(self, request, response):
123124
)
124125
response.cookies = cookies
125126
if 'gzip' not in response.get('Content-Encoding', '') and \
126-
response.get('Content-Type', '').split(';')[0] in _HTML_TYPES:
127-
toolbar.stats = {}
127+
response.get('Content-Type', '').split(';')[0] in _HTML_TYPES:
128128
for panel in toolbar.panels:
129129
panel.process_response(request, response)
130130
response.content = replace_insensitive(

0 commit comments

Comments
 (0)