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

New HTTP/1.1 Redirection Code #18

Closed mekza closed 10 years ago

mekza commented 10 years ago

With old codes (301,302) a POST was redirected as a GET. According to RFC2616, 307 and 308 don't modify the initial request.

kennethreitz commented 10 years ago

I think I'm going to stick to the current behavior for the sake of most web browsers :)

I could be convinced otherwise, of course.

mekza commented 10 years ago

Maybe add an argument to choose. It's useful for API :)

ve4edj commented 8 years ago

:+1: I agree. I cannot use this for APIs unless this is merged :)