From 7503bd2357880a1e5909164461d5b8a443daaddd Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 29 May 2021 15:45:42 +0200 Subject: [PATCH] redirect always --- backend/stream.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/stream.py b/backend/stream.py index 9a7b100..0a46552 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -269,8 +269,7 @@ class MainHandler(tornado.web.RequestHandler): upstream_proxy = await handler.proxy.proxy_url(upstream, None) ctype = await handler.proxy.content_type(upstream_proxy) self.set_header("Content-Type", ctype) - if redir: - self.redirect(upstream_proxy, status=303) + self.redirect(upstream_proxy, status=303) async def get(self): await self.handle_any(True) async def head(self):