Loading django/utils/cache.py +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ def patch_cache_control(response, **kwargs): else: return '%s=%s' % (t[0], t[1]) if response.has_header('Cache-Control'): if response.get('Cache-Control'): cc = cc_delim_re.split(response['Cache-Control']) cc = dict(dictitem(el) for el in cc) else: Loading tests/cache/tests.py +1 −0 Original line number Diff line number Diff line Loading @@ -1456,6 +1456,7 @@ class CacheUtils(SimpleTestCase): tests = ( # Initial Cache-Control, kwargs to patch_cache_control, expected Cache-Control parts (None, {'private': True}, {'private'}), ('', {'private': True}, {'private'}), # Test whether private/public attributes are mutually exclusive ('private', {'private': True}, {'private'}), Loading Loading
django/utils/cache.py +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ def patch_cache_control(response, **kwargs): else: return '%s=%s' % (t[0], t[1]) if response.has_header('Cache-Control'): if response.get('Cache-Control'): cc = cc_delim_re.split(response['Cache-Control']) cc = dict(dictitem(el) for el in cc) else: Loading
tests/cache/tests.py +1 −0 Original line number Diff line number Diff line Loading @@ -1456,6 +1456,7 @@ class CacheUtils(SimpleTestCase): tests = ( # Initial Cache-Control, kwargs to patch_cache_control, expected Cache-Control parts (None, {'private': True}, {'private'}), ('', {'private': True}, {'private'}), # Test whether private/public attributes are mutually exclusive ('private', {'private': True}, {'private'}), Loading