not-kennethreitz / flask-sslify

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

Disable redirects when testing mode is enabled. #36

Closed DanielleB-R closed 8 years ago

DanielleB-R commented 8 years ago

This change modifies the criteria for redirection of requests to include the app.testing flag, generally set during testing of a Flask app. This is very useful because the Flask test_client does not follow redirects, so enabling the redirects during testing means that the test requests will fail.

kennethreitz commented 8 years ago

:sparkles: :cake: :sparkles: