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