Permalink
Browse files

Fixed #4071 -- Fixed bug in cache_page decorator, which was setting t…

…he wrong header. Thanks, Ionut Ciocirlan (xlotlu) and permon

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4100eab commit b5224693222a96a42e446e737f40fe9c8a48cf07 @adrianholovaty adrianholovaty committed Sep 14, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 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:

0 comments on commit b522469

Please sign in to comment.