Skip to content
Myr

Update docs/patterns/deferredcallbacks.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Trung Ly · committed by Trung Ly · parent ff2e844 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/deferredcallbacks.rst+1 added-1 removed
47 unmodified lines
4849 @app.after_request50 def call_after_request_callbacks(response):51 for callback in getattr(g, 'after_request_callbacks', ()):52 response = callback(response)52 callback(response)53 return response545556A Practical Example
17 unmodified lines