log content type

This commit is contained in:
Roy Olav Purser 2021-05-15 09:30:15 +02:00
parent a6a7488438
commit 97563dec60
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -348,6 +348,7 @@ class MainHandler(tornado.web.RequestHandler):
else:
upstream_proxy = await handler.proxy.proxy_url(upstream, None)
ctype = await handler.proxy.content_type(upstream_proxy)
logger.info(upstream_proxy)
data = None
if "mpegurl" in ctype.lower():
data = await rewrite(upstream, handler.proxy)