Files
postgres-web/pgweb/util/decorators.py
Magnus Hagander 5f619889d7 Make https redirection work again.
Add a way to skip https redirection, so we can still run it locally,
and mark a couple of forms as requiring https.
2009-09-16 15:46:17 +02:00

5 lines
130 B
Python

def ssl_required(fn):
def _require_ssl(request, *_args, **_kwargs):
return fn(request, *_args, **_kwargs)
return _require_ssl