Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update docs/patterns/deferredcallbacks.rst #665

Merged
merged 1 commit into from

2 participants

@trungly

Fix example code in Deferred Callback docs: don't set response upon executing callback

To fix this issue: #664

@trungly trungly Update docs/patterns/deferredcallbacks.rst
fix example code in Deferred Callback docs: don't set response upon executing callback
b4fc441
@kennethreitz
Collaborator

why not :)

@kennethreitz kennethreitz merged commit 1e14783 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 14, 2013
  1. @trungly

    Update docs/patterns/deferredcallbacks.rst

    trungly authored
    fix example code in Deferred Callback docs: don't set response upon executing callback
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.