Re: [Twisted-Python] Forcing Twisted / Klein to use HTTPS

2017-08-30 Thread Jean-Paul Calderone
On Wed, Aug 30, 2017 at 11:36 AM, Chris Norman wrote: > 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 > erro

[Twisted-Python] Forcing Twisted / Klein to use HTTPS

2017-08-30 Thread Chris Norman
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 w