await rewrite

This commit is contained in:
Roy Olav Purser 2021-05-14 16:53:44 +02:00
parent f7f478415c
commit 305c622c76
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -346,7 +346,7 @@ class MainHandler(tornado.web.RequestHandler):
logger.info(upstream)
data = None
if "mpegurl" in ctype.lower():
data = rewrite(upstream, proxy)
data = await rewrite(upstream, proxy)
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
self.write(data)
else: