diff options
| author | Rob Hudson | 2010-04-07 07:51:39 -0700 |
|---|---|---|
| committer | Rob Hudson | 2010-04-07 07:51:39 -0700 |
| commit | a7715670cce1b7b573bdf2089224cd3fd5405ade (patch) | |
| tree | acaac84a7041386305f120c06469509aa2688d05 /debug_toolbar/debug/headers.py | |
| parent | f5769e44161a2e9dfa9acbd68287238f9caa95a6 (diff) | |
| download | django-debug-toolbar-a7715670cce1b7b573bdf2089224cd3fd5405ade.tar.bz2 | |
Revert "Factor headers data out of HeaderDebugPanel."
This reverts commit 4326cbbec13f44e6d8c757f1d07fd6100596bfb6.
Diffstat (limited to 'debug_toolbar/debug/headers.py')
| -rw-r--r-- | debug_toolbar/debug/headers.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/debug_toolbar/debug/headers.py b/debug_toolbar/debug/headers.py deleted file mode 100644 index 08b5bbf..0000000 --- a/debug_toolbar/debug/headers.py +++ /dev/null @@ -1,30 +0,0 @@ -class DebugHeaders(object): - - # List of headers we want to display - header_filter = ( - 'CONTENT_TYPE', - 'HTTP_ACCEPT', - 'HTTP_ACCEPT_CHARSET', - 'HTTP_ACCEPT_ENCODING', - 'HTTP_ACCEPT_LANGUAGE', - 'HTTP_CACHE_CONTROL', - 'HTTP_CONNECTION', - 'HTTP_HOST', - 'HTTP_KEEP_ALIVE', - 'HTTP_REFERER', - 'HTTP_USER_AGENT', - 'QUERY_STRING', - 'REMOTE_ADDR', - 'REMOTE_HOST', - 'REQUEST_METHOD', - 'SCRIPT_NAME', - 'SERVER_NAME', - 'SERVER_PORT', - 'SERVER_PROTOCOL', - 'SERVER_SOFTWARE', - ) - - def available_headers(self, request): - return dict( - [(k, request.META[k]) for k in self.header_filter if k in request.META] - ) |
