Browse Source

Update docs/patterns/deferredcallbacks.rst

fix example code in Deferred Callback docs: don't set response upon executing callback
pull/665/head
Trung Ly 12 years ago
parent
commit
b4fc4412e8
  1. 2
      docs/patterns/deferredcallbacks.rst

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

Loading…
Cancel
Save