double derp
This commit is contained in:
parent
d12e9ca882
commit
ca49a74a25
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user