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):