mirror of
https://github.com/django/django.git
synced 2024-12-24 18:16:19 +00:00
Fixed typo in comment.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0d48087a53
commit
90c67e0f55
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user