Skip to content
Myr

fixing process_response

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

Flask.process_response will throw away functions is receives from ctx._after_request_functions if there is a Blueprint that has used @after_request.

authored by Trey Long · committed by Trey Long · parent 6309987 · 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)
137 unmodified lines