forked from orbit-oss/flask
fixing process_response
Flask.process_response will throw away functions is receives from ctx._after_request_functions if there is a Blueprint that has used @after_request.
This commit is contained in:
parent
6309987dca
commit
f74f446961
1 changed files with 1 additions and 1 deletions
|
|
@ -1679,7 +1679,7 @@ class Flask(_PackageBoundObject):
|
|||
bp = ctx.request.blueprint
|
||||
funcs = ctx._after_request_functions
|
||||
if bp is not None and bp in self.after_request_funcs:
|
||||
funcs = reversed(self.after_request_funcs[bp])
|
||||
funcs = chain(funcs, reversed(self.after_request_funcs[bp]))
|
||||
if None in self.after_request_funcs:
|
||||
funcs = chain(funcs, reversed(self.after_request_funcs[None]))
|
||||
for handler in funcs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue