[1.9.x] Fixed a typo in tests/middleware/test_security.py
Backport of 0850236a8c3647bc3c239bd34afae0488abe5c60 from master
This commit is contained in:
parent
3771019de9
commit
5d6526614b
@ -110,7 +110,7 @@ class SecurityMiddlewareTest(SimpleTestCase):
|
|||||||
"""
|
"""
|
||||||
self.assertEqual(self.process_response()["x-content-type-options"], "nosniff")
|
self.assertEqual(self.process_response()["x-content-type-options"], "nosniff")
|
||||||
|
|
||||||
@override_settings(SECURE_CONTENT_TYPE_NO_SNIFF=True)
|
@override_settings(SECURE_CONTENT_TYPE_NOSNIFF=True)
|
||||||
def test_content_type_already_present(self):
|
def test_content_type_already_present(self):
|
||||||
"""
|
"""
|
||||||
The middleware will not override an "x-content-type-options" header
|
The middleware will not override an "x-content-type-options" header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user