Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit b5224693222a96a42e446e737f40fe9c8a48cf07 1 parent 4100eab
Adrian Holovaty authored September 14, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/utils/cache.py
4  django/utils/cache.py
@@ -42,9 +42,9 @@ def patch_cache_control(response, **kwargs):
42 42
     def dictitem(s):
43 43
         t = s.split('=',1)
44 44
         if len(t) > 1:
45  
-            return (t[0].lower().replace('-', '_'), t[1])
  45
+            return (t[0].lower(), t[1])
46 46
         else:
47  
-            return (t[0].lower().replace('-', '_'), True)
  47
+            return (t[0].lower(), True)
48 48
 
49 49
     def dictvalue(t):
50 50
         if t[1] is True:

0 notes on commit b522469

Please sign in to comment.
Something went wrong with that request. Please try again.