Hi all,

I'm trying to force Klein to use HTTPS, and so far I have a custom error handler which redirects the user to the HTTPs version of the page via a check_secure function which takes the request object and raises the right error if request.isSecure() is False.


Is there a better global way to enforce HTTPS with any part of Klein or Twisted?


Cheers,


Chris

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to