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
This commit is contained in:
parent
4100eab823
commit
b522469322
|
@ -42,9 +42,9 @@ def patch_cache_control(response, **kwargs):
|
||||||
def dictitem(s):
|
def dictitem(s):
|
||||||
t = s.split('=',1)
|
t = s.split('=',1)
|
||||||
if len(t) > 1:
|
if len(t) > 1:
|
||||||
return (t[0].lower().replace('-', '_'), t[1])
|
return (t[0].lower(), t[1])
|
||||||
else:
|
else:
|
||||||
return (t[0].lower().replace('-', '_'), True)
|
return (t[0].lower(), True)
|
||||||
|
|
||||||
def dictvalue(t):
|
def dictvalue(t):
|
||||||
if t[1] is True:
|
if t[1] is True:
|
||||||
|
|
Loading…
Reference in New Issue