From 94216f241a06ecc38d5151cf41900e62caba6b83 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 20 Dec 2022 05:53:34 +0000 Subject: [PATCH] Add no-accel option to proxy for debugging --- mediaproxy/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediaproxy/views.py b/mediaproxy/views.py index 12cfd7c..11aea5d 100644 --- a/mediaproxy/views.py +++ b/mediaproxy/views.py @@ -19,7 +19,7 @@ class BaseProxyView(View): self.kwargs = kwargs remote_url = self.get_remote_url() # See if we can do the nginx trick or a normal forward - if request.headers.get("x-takahe-accel"): + if request.headers.get("x-takahe-accel") and not request.GET.get("no_accel"): bits = urlparse(remote_url) redirect_url = ( f"/__takahe_accel__/{bits.scheme}/{bits.hostname}/{bits.path}"