Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update docs/patterns/deferredcallbacks.rst

fix example code in Deferred Callback docs: don't set response upon executing callback
  • Loading branch information...
commit b4fc4412e8bbdb359d1f5b9dd22a95326e73b896 1 parent ff2e844
@trungly authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/patterns/deferredcallbacks.rst
View
2  docs/patterns/deferredcallbacks.rst
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.