mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed docs to refer to HSTS includeSubdomains as a directive.
The spec refers to it as a 'directive' rather than a 'tag': https://tools.ietf.org/html/rfc6797#section-6.1.2
This commit is contained in:
parent
004ba05bca
commit
8c3bc5cd78
3 changed files with 5 additions and 5 deletions
|
@ -83,7 +83,7 @@ class SecurityMiddlewareTest(SimpleTestCase):
|
|||
"""
|
||||
With HSTS_SECONDS non-zero and HSTS_INCLUDE_SUBDOMAINS
|
||||
True, the middleware adds a "strict-transport-security" header with the
|
||||
"includeSubDomains" tag to the response.
|
||||
"includeSubDomains" directive to the response.
|
||||
"""
|
||||
response = self.process_response(secure=True)
|
||||
self.assertEqual(response["strict-transport-security"], "max-age=600; includeSubDomains")
|
||||
|
@ -94,7 +94,7 @@ class SecurityMiddlewareTest(SimpleTestCase):
|
|||
"""
|
||||
With HSTS_SECONDS non-zero and HSTS_INCLUDE_SUBDOMAINS
|
||||
False, the middleware adds a "strict-transport-security" header without
|
||||
the "includeSubDomains" tag to the response.
|
||||
the "includeSubDomains" directive to the response.
|
||||
"""
|
||||
response = self.process_response(secure=True)
|
||||
self.assertEqual(response["strict-transport-security"], "max-age=600")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue