From ca49a74a253862930d27da09a1f6d9dccfded738 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 14 May 2021 15:53:17 +0200 Subject: [PATCH] double derp --- stream.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stream.py b/stream.py index 0cdebfb..70525bc 100755 --- a/stream.py +++ b/stream.py @@ -320,13 +320,12 @@ class MainHandler(tornado.web.RequestHandler): if "mpegurl" in ctype.lower(): data = rewrite(upstream, provider, proxy) self.set_header("Content-Type", "application/vnd.apple.mpegurl") + self.write(data) else: self.set_header("Content-Type", ctype) if redir: upstream = await handler.proxy.proxy_url(upstream, None) self.redirect(upstream, status=303) - else: - self.write(data) async def get(self): await self.handle_any(True) async def head(self):