summaryrefslogtreecommitdiff
path: root/django/utils/cache.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-14 21:42:26 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-14 21:42:26 +0000
commitb5224693222a96a42e446e737f40fe9c8a48cf07 (patch)
treee7b6752ace380cf3a212290d988802eb83a1b444 /django/utils/cache.py
parent4100eab823202a26a7b8227d9b2d1a8c7811c1d7 (diff)
Fixed #4071 -- Fixed bug in cache_page decorator, which was setting the wrong header. Thanks, Ionut Ciocirlan (xlotlu) and permon
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/cache.py')
-rw-r--r--django/utils/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py
index 2753d86949..2494d7839e 100644
--- a/django/utils/cache.py
+++ b/django/utils/cache.py
@@ -42,9 +42,9 @@ def patch_cache_control(response, **kwargs):
def dictitem(s):
t = s.split('=',1)
if len(t) > 1:
- return (t[0].lower().replace('-', '_'), t[1])
+ return (t[0].lower(), t[1])
else:
- return (t[0].lower().replace('-', '_'), True)
+ return (t[0].lower(), True)
def dictvalue(t):
if t[1] is True: