mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-28 18:21:00 +00:00
Add no-accel option to proxy for debugging
This commit is contained in:
parent
5ab5684798
commit
94216f241a
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class BaseProxyView(View):
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
remote_url = self.get_remote_url()
|
remote_url = self.get_remote_url()
|
||||||
# See if we can do the nginx trick or a normal forward
|
# 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)
|
bits = urlparse(remote_url)
|
||||||
redirect_url = (
|
redirect_url = (
|
||||||
f"/__takahe_accel__/{bits.scheme}/{bits.hostname}/{bits.path}"
|
f"/__takahe_accel__/{bits.scheme}/{bits.hostname}/{bits.path}"
|
||||||
|
|
Loading…
Reference in a new issue