Browse Source

Merge pull request #708 from xealot/master

Blueprint.after_request causes Flask to ignore @after_this_request
pull/676/merge
Armin Ronacher 12 years ago
parent
commit
335e0af731
  1. 2
      flask/app.py

2
flask/app.py

@ -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…
Cancel
Save