Commits

Gabriel Grant committed 582b2b1

Fixed SSL_REQUEST_HEADER setting to use the custom setting, if available

  • Participants
  • Parent commits 1a7dab0

Comments (0)

Files changed (1)

beproud/django/ssl/conf.py

 settings.USE_SSL = getattr(django_settings, "USE_SSL", True)
 settings.SSL_URLS = getattr(django_settings, "SSL_URLS", ())
 settings.SSL_IGNORE_URLS = getattr(django_settings, "SSL_IGNORE_URLS", ())
-settings.SSL_REQUEST_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
+settings.SSL_REQUEST_HEADER = getattr(
+    django_settings, "SSL_REQUEST_HEADER",
+    ('HTTP_X_FORWARDED_PROTOCOL', 'https')
+)