Use query instead of request.headers
This commit is contained in:
parent
c862cb8c65
commit
0bb724dcc1
|
@ -116,7 +116,7 @@ async def handler(request):
|
||||||
'Content-Length': str(length),
|
'Content-Length': str(length),
|
||||||
'Accept-Ranges': 'bytes'
|
'Accept-Ranges': 'bytes'
|
||||||
}
|
}
|
||||||
if content_type := request.headers.get('Content-Type'):
|
if content_type := query.get('Content-Type'):
|
||||||
headers['Content-Type'] = content_type
|
headers['Content-Type'] = content_type
|
||||||
|
|
||||||
async def download():
|
async def download():
|
||||||
|
|
Loading…
Reference in New Issue