Skip to content
Myr

Merge pull request #708 from xealot/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Blueprint.after_request causes Flask to ignore @after_this_request

authored by Armin Ronacher · committed by Armin Ronacher · parents c349c91, f74f446 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/app.py+1 added-1 removed
1677 unmodified lines
1678 ctx = _request_ctx_stack.top1679 bp = ctx.request.blueprint1680 funcs = ctx._after_request_functions1681 if bp is not None and bp in self.after_request_funcs:1682 funcs = reversed(self.after_request_funcs[bp])1682 funcs = chain(funcs, reversed(self.after_request_funcs[bp]))1683 if None in self.after_request_funcs:1684 funcs = chain(funcs, reversed(self.after_request_funcs[None]))1685 for handler in funcs:1686 response = handler(response)
143 unmodified lines