mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Fixed a typo in tests/middleware/test_security.py
This commit is contained in:
parent
83be40760a
commit
0850236a8c
@ -107,7 +107,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