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():
|
if "mpegurl" in ctype.lower():
|
||||||
data = rewrite(upstream, provider, proxy)
|
data = rewrite(upstream, provider, proxy)
|
||||||
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
||||||
|
self.write(data)
|
||||||
else:
|
else:
|
||||||
self.set_header("Content-Type", ctype)
|
self.set_header("Content-Type", ctype)
|
||||||
if redir:
|
if redir:
|
||||||
upstream = await handler.proxy.proxy_url(upstream, None)
|
upstream = await handler.proxy.proxy_url(upstream, None)
|
||||||
self.redirect(upstream, status=303)
|
self.redirect(upstream, status=303)
|
||||||
else:
|
|
||||||
self.write(data)
|
|
||||||
async def get(self):
|
async def get(self):
|
||||||
await self.handle_any(True)
|
await self.handle_any(True)
|
||||||
async def head(self):
|
async def head(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user