diff options
author | nsasaki128 <naoki.robert.sasaki@gmail.com> | 2019-06-25 15:15:00 +0900 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-06-26 09:25:24 +0200 |
commit | a289e7967907f47e8aba2b25e5f397af6ac7dac9 (patch) | |
tree | f292fb0c21e5014058b0410c7d08b57bc5834e60 /tests/decorators | |
parent | 8454f6dea49dddb821bfcb7569ea222bb487dfd1 (diff) | |
download | django-a289e7967907f47e8aba2b25e5f397af6ac7dac9.tar.gz |
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
Diffstat (limited to 'tests/decorators')
-rw-r--r-- | tests/decorators/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index aaa09c0056..c7a37fdda5 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -478,5 +478,5 @@ class NeverCacheDecoratorTest(TestCase): r = a_view(HttpRequest()) self.assertEqual( set(r['Cache-Control'].split(', ')), - {'max-age=0', 'no-cache', 'no-store', 'must-revalidate'}, + {'max-age=0', 'no-cache', 'no-store', 'must-revalidate', 'private'}, ) |