From a289e7967907f47e8aba2b25e5f397af6ac7dac9 Mon Sep 17 00:00:00 2001 From: nsasaki128 Date: Tue, 25 Jun 2019 15:15:00 +0900 Subject: Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator. --- tests/decorators/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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'}, ) -- cgit v1.3