double derp

This commit is contained in:
Roy Olav Purser 2021-05-14 15:53:17 +02:00
parent d12e9ca882
commit ca49a74a25
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

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