not-kennethreitz / flask-sslify

Force SSL on your Flask app.
https://pypi.python.org/pypi/Flask-SSLify
BSD 2-Clause "Simplified" License
503 stars 85 forks source link

HTTP/1.1 & RFC 7238 redirect codes. #31

Closed mekza closed 8 years ago

mekza commented 9 years ago

18 was too strict.

How to set it:

SSLIFY_HTTP11=True

Flask will return 307[1] and 308[2] HTTP codes instead of 302 and 301.

[1] https://tools.ietf.org/html/rfc7231#section-6.4.7 [2] https://tools.ietf.org/html/rfc7238

kennethreitz commented 8 years ago

I'm going to pass on this for now, but thank you!