[Twisted-Python] Forcing Twisted / Klein to use HTTPS
![](https://secure.gravatar.com/avatar/8c7dc64a3da0fd9a08744a9fa4d06d31.jpg?s=120&d=mm&r=g)
Aug. 30, 2017
3:36 p.m.
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
2726
Age (days ago)
2726
Last active (days ago)
1 comments
2 participants
participants (2)
-
Chris Norman
-
Jean-Paul Calderone