diff options
| author | Flavio Curella <flavio.curella@gmail.com> | 2019-09-26 13:58:14 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-10 19:30:51 +0200 |
| commit | ed112fadc1cfa400dbee6080bf82fd7536ea4c72 (patch) | |
| tree | dc96114d797f815577a61c12abc899dbb8307277 /tests | |
| parent | 2a6f45e08e8cb8c7e5157915c378b453109424d2 (diff) | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/cache/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
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'}), |
