Commit 90c67e0f authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

Fixed typo in comment.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 0d48087a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ def patch_cache_control(response, **kwargs):
        cc = {}

    # If there's already a max-age header but we're being asked to set a new
    # max-age, use the minumum of the two ages. In practice this happens when
    # max-age, use the minimum of the two ages. In practice this happens when
    # a decorator and a piece of middleware both operate on a given view.
    if 'max-age' in cc and 'max_age' in kwargs:
        kwargs['max_age'] = min(cc['max-age'], kwargs['max_age'])