mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Fix test to accept both orderings of the cache-control header
This commit is contained in:
parent
4a1b337461
commit
c72a4e0941
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class TestServeView(TestCase):
|
|||
self.assertEqual(self.get()['ETag'], '"123456"')
|
||||
|
||||
def test_has_cache_control_header(self):
|
||||
self.assertEqual(self.get()['Cache-Control'], 'max-age=3600, public')
|
||||
self.assertIn(self.get()['Cache-Control'], ['max-age=3600, public', 'public, max-age=3600'])
|
||||
|
||||
def clear_sendfile_cache(self):
|
||||
from wagtail.utils.sendfile import _get_sendfile
|
||||
|
|
|
|||
Loading…
Reference in a new issue