diff options
| author | Jannis Leidel | 2012-04-04 21:27:39 +0200 | 
|---|---|---|
| committer | Jannis Leidel | 2012-04-04 21:27:39 +0200 | 
| commit | 77d108a820590a5e5e04d9370e914ff8dbcf1ae1 (patch) | |
| tree | aba0970ea17d6f0b6769211ce8f6deb73b3d986e /debug_toolbar | |
| parent | 3c791017fa316c4d672b2070a36218ba7acc78f1 (diff) | |
| download | django-debug-toolbar-77d108a820590a5e5e04d9370e914ff8dbcf1ae1.tar.bz2 | |
Removed backslash.
Diffstat (limited to 'debug_toolbar')
| -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 6ea13fc..d24bcaf 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -123,8 +123,8 @@ class DebugToolbarMiddleware(object):                      {'redirect_to': redirect_to}                  )                  response.cookies = cookies -        if 'gzip' not in response.get('Content-Encoding', '') and \ -           response.get('Content-Type', '').split(';')[0] in _HTML_TYPES: +        if ('gzip' not in response.get('Content-Encoding', '') and +                response.get('Content-Type', '').split(';')[0] in _HTML_TYPES):              for panel in toolbar.panels:                  panel.process_response(request, response)              response.content = replace_insensitive( | 
