Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

command sequence matters #37

Open
bebbi opened this issue Feb 5, 2016 · 0 comments
Open

command sequence matters #37

bebbi opened this issue Feb 5, 2016 · 0 comments

Comments

@bebbi
Copy link

bebbi commented Feb 5, 2016

Placing the SSLify(app, ..) command before another function definition decorated with "@app.before_request" makes my app produce 500 errors on http requests instead of redirecting, while working ok for https requests.
My other decorated func adds properties to the flask g object which in the error case aren't found later at request time, so I assume it isn't called.
Just placing the SSLify(..) after that decorated func resolves this issue, everything works. I assume this is a SSLify issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant