forked from orbit-oss/flask
Added after_this_request decorator.
This commit is contained in:
parent
dbfd406a21
commit
086348e2f2
6 changed files with 51 additions and 2 deletions
|
|
@ -1555,7 +1555,7 @@ class Flask(_PackageBoundObject):
|
|||
"""
|
||||
ctx = _request_ctx_stack.top
|
||||
bp = ctx.request.blueprint
|
||||
funcs = ()
|
||||
funcs = ctx._after_request_functions
|
||||
if bp is not None and bp in self.after_request_funcs:
|
||||
funcs = reversed(self.after_request_funcs[bp])
|
||||
if None in self.after_request_funcs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue