diff options
| author | bkonkle | 2011-09-15 09:37:18 -0500 |
|---|---|---|
| committer | bkonkle | 2011-09-15 09:37:18 -0500 |
| commit | 03cd2ded38bb6ccd3c97e11fcd1f99bd967dc996 (patch) | |
| tree | 0f378efc247c3d305187928ea03d6b851df88c3f | |
| parent | 36a2f1d85d615db3c8eda65ccbd3ee14702b1397 (diff) | |
| download | django-debug-toolbar-03cd2ded38bb6ccd3c97e11fcd1f99bd967dc996.tar.bz2 | |
Revert the middleware back to its original state, because no changes are actually needed
| -rw-r--r-- | debug_toolbar/middleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index 59194dc..f49a29f 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -5,6 +5,7 @@ import imp import thread from django.conf import settings +from django.conf.urls.defaults import include, patterns from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.utils.encoding import smart_unicode @@ -123,8 +124,7 @@ class DebugToolbarMiddleware(object): ) response.cookies = cookies if 'gzip' not in response.get('Content-Encoding', '') and \ - response.get('Content-Type', '').split(';')[0] in _HTML_TYPES: - toolbar.stats = {} + response.get('Content-Type', '').split(';')[0] in _HTML_TYPES: for panel in toolbar.panels: panel.process_response(request, response) response.content = replace_insensitive( |
