diff --git a/streamtg.py b/streamtg.py index c01db8b..0359f6b 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 := requests.headers.get('Content-Type'): + if content_type := request.headers.get('Content-Type'): headers['Content-Type'] = content_type async def download():