From 30c4bbec1d0b744bddc1407f7babd04394864d6d Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 5 Jan 2019 17:03:34 -0800 Subject: [PATCH] restreamer: return the actual response from after_request even if untracked otherwise any untracked endpoints don't work --- restreamer/restreamer/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restreamer/restreamer/stats.py b/restreamer/restreamer/stats.py index b1e2a24..513d71c 100644 --- a/restreamer/restreamer/stats.py +++ b/restreamer/restreamer/stats.py @@ -62,7 +62,7 @@ def after_request(response): normalize the handler result into a Response object. """ if 'metrics' not in request_store: - return # untracked handler + return response # untracked handler end_time = monotonic() metrics = request_store.metrics