await rewrite
This commit is contained in:
parent
f7f478415c
commit
305c622c76
@ -346,7 +346,7 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
logger.info(upstream)
|
logger.info(upstream)
|
||||||
data = None
|
data = None
|
||||||
if "mpegurl" in ctype.lower():
|
if "mpegurl" in ctype.lower():
|
||||||
data = rewrite(upstream, proxy)
|
data = await rewrite(upstream, proxy)
|
||||||
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
||||||
self.write(data)
|
self.write(data)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user