From 0bb724dcc1d1638636199345f49e26d93cded1ab Mon Sep 17 00:00:00 2001 From: blank X Date: Fri, 21 May 2021 17:09:00 +0700 Subject: [PATCH] Use query instead of request.headers --- streamtg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamtg.py b/streamtg.py index 0359f6b..0d8a3f3 100644 --- a/streamtg.py +++ b/streamtg.py @@ -116,7 +116,7 @@ async def handler(request): 'Content-Length': str(length), 'Accept-Ranges': 'bytes' } - if content_type := request.headers.get('Content-Type'): + if content_type := query.get('Content-Type'): headers['Content-Type'] = content_type async def download():