Django

Code

Changeset 6222

Show
Ignore:
Timestamp:
09/14/07 16:42:26 (1 year ago)
Author:
adrian
Message:

Fixed #4071 -- Fixed bug in cache_page decorator, which was setting the wrong header. Thanks, Ionut Ciocirlan (xlotlu) and permon

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/cache.py

    r5712 r6222  
    4343        t = s.split('=',1) 
    4444        if len(t) > 1: 
    45             return (t[0].lower().replace('-', '_'), t[1]) 
     45            return (t[0].lower(), t[1]) 
    4646        else: 
    47             return (t[0].lower().replace('-', '_'), True) 
     47            return (t[0].lower(), True) 
    4848 
    4949    def dictvalue(t):