diff options
Diffstat (limited to 'django/middleware/security.py')
| -rw-r--r-- | django/middleware/security.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/middleware/security.py b/django/middleware/security.py index d923893dc5..f27c6804b9 100644 --- a/django/middleware/security.py +++ b/django/middleware/security.py @@ -6,9 +6,7 @@ from django.utils.deprecation import MiddlewareMixin class SecurityMiddleware(MiddlewareMixin): - # RemovedInDjango40Warning: when the deprecation ends, replace with: - # def __init__(self, get_response): - def __init__(self, get_response=None): + def __init__(self, get_response): super().__init__(get_response) self.sts_seconds = settings.SECURE_HSTS_SECONDS self.sts_include_subdomains = settings.SECURE_HSTS_INCLUDE_SUBDOMAINS |
