From ed112fadc1cfa400dbee6080bf82fd7536ea4c72 Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Thu, 26 Sep 2019 13:58:14 -0700 Subject: Fixed #23755 -- Added support for multiple field names in the no-cache Cache-Control directive to patch_cache_control(). https://tools.ietf.org/html/rfc7234#section-5.2.2.2 --- tests/cache/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/cache') diff --git a/tests/cache/tests.py b/tests/cache/tests.py index 648ffbc499..8182d5a8c0 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -1705,6 +1705,12 @@ class CacheUtils(SimpleTestCase): ('', {'no-cache': 'Set-Cookie'}, {'no-cache=Set-Cookie'}), ('no-cache=Set-Cookie', {'no_cache': True}, {'no-cache'}), ('no-cache=Set-Cookie,no-cache=Link', {'no_cache': True}, {'no-cache'}), + ('no-cache=Set-Cookie', {'no_cache': 'Link'}, {'no-cache=Set-Cookie', 'no-cache=Link'}), + ( + 'no-cache=Set-Cookie,no-cache=Link', + {'no_cache': 'Custom'}, + {'no-cache=Set-Cookie', 'no-cache=Link', 'no-cache=Custom'}, + ), # Test whether private/public attributes are mutually exclusive ('private', {'private': True}, {'private'}), ('private', {'public': True}, {'public'}), -- cgit v1.3