forked from orbit-oss/flask
Merge pull request #665 from trungly/deferred_callbacks_fix
Update docs/patterns/deferredcallbacks.rst
This commit is contained in:
commit
1e14783abd
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ this the following function needs to be registered as
|
|||
@app.after_request
|
||||
def call_after_request_callbacks(response):
|
||||
for callback in getattr(g, 'after_request_callbacks', ()):
|
||||
response = callback(response)
|
||||
callback(response)
|
||||
return response
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue