diff options
| author | Ed Morley <emorley@mozilla.com> | 2016-07-28 17:30:16 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-08 20:20:49 -0400 |
| commit | 8c3bc5cd7801a307a0bc2969abebe7a6ca48d17f (patch) | |
| tree | 4548b0bf9027e0291093eb741b856a4cfbf6d35f /tests | |
| parent | 004ba05bcaab9133bc2b7f943f6c3198da38dbc0 (diff) | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/middleware/test_security.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/middleware/test_security.py b/tests/middleware/test_security.py index 2b6a54eb17..f671600c49 100644 --- a/tests/middleware/test_security.py +++ b/tests/middleware/test_security.py @@ -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") |
