aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/after.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/utility/after.py')
-rw-r--r--wqflask/utility/after.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/wqflask/utility/after.py b/wqflask/utility/after.py
index a3bb85e9..b628a0a4 100644
--- a/wqflask/utility/after.py
+++ b/wqflask/utility/after.py
@@ -13,10 +13,4 @@ def after_this_request(f):
if not hasattr(g, 'after_request_callbacks'):
g.after_request_callbacks = []
g.after_request_callbacks.append(f)
- return f
-
-@app.after_request
-def call_after_request_callbacks(response):
- for callback in getattr(g, 'after_request_callbacks', ()):
- callback(response)
- return response
+ return f \ No newline at end of file