rewrite debug print
This commit is contained in:
parent
305c622c76
commit
658e49e466
@ -347,8 +347,10 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
data = None
|
data = None
|
||||||
if "mpegurl" in ctype.lower():
|
if "mpegurl" in ctype.lower():
|
||||||
data = await rewrite(upstream, proxy)
|
data = await rewrite(upstream, proxy)
|
||||||
self.set_header("Content-Type", "application/vnd.apple.mpegurl")
|
logger.info(data)
|
||||||
self.write(data)
|
if isinstance(data, str):
|
||||||
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user