The after_request handlers should be called in reverse order #82

Closed
cristatus opened this Issue Jul 12, 2010 · 1 comment

2 participants

@cristatus

This after_request handlers should be called in reverse order to ensure the very first registered handler should be called at last.

For example, I register after_request callback to close database session. As my code grows, I register few more after_request callbacks expecting that the very first callback registered will be called at last, but it doesn't.

@mitsuhiko
The Pallets Projects member

Reverse order of execution of post-request handlers. This closed by d12d732

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment