Permalink
Browse files

Merge pull request #665 from trungly/deferred_callbacks_fix

Update docs/patterns/deferredcallbacks.rst
  • Loading branch information...
2 parents 94a9b96 + b4fc441 commit 1e14783abddd99c450e7865f135bf126efe5fad1 @kennethreitz kennethreitz committed Jan 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 1e14783

Please sign in to comment.