Browse Source

Merge pull request #665 from trungly/deferred_callbacks_fix

Update docs/patterns/deferredcallbacks.rst
pull/640/merge
Kenneth Reitz 12 years ago
parent
commit
1e14783abd
  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 @app.after_request
def call_after_request_callbacks(response): def call_after_request_callbacks(response):
for callback in getattr(g, 'after_request_callbacks', ()): for callback in getattr(g, 'after_request_callbacks', ()):
response = callback(response) callback(response)
return response return response

Loading…
Cancel
Save