summaryrefslogtreecommitdiff
path: root/pgweb/util/middleware.py
diff options
context:
space:
mode:
authorMagnus Hagander2016-05-19 17:34:44 +0000
committerMagnus Hagander2016-05-24 19:13:00 +0000
commit753d20545a6d971500c6028332e69bc29e1771b2 (patch)
tree67a1af812c7a5b79214429b93c255d64e7bbb226 /pgweb/util/middleware.py
parent0a5213b2b66b94a35eafdb7789c29d2b949f5b71 (diff)
Remove SSL optional tag
Diffstat (limited to 'pgweb/util/middleware.py')
-rw-r--r--pgweb/util/middleware.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/pgweb/util/middleware.py b/pgweb/util/middleware.py
index 41af9157..f389862e 100644
--- a/pgweb/util/middleware.py
+++ b/pgweb/util/middleware.py
@@ -24,11 +24,6 @@ class PgMiddleware(object):
if hasattr(settings,'NO_HTTPS_REDIRECT') and settings.NO_HTTPS_REDIRECT:
return None
- # Does this view allow both SSL and non-ssl?
- if getattr(view_func, 'ssl_optional', False):
- # SSL is optional, so perform no redirects
- return None
-
# Always redirect the admin interface to https
if request.path.startswith('/admin'):
if not request.is_secure():