Add support for modifying Content-Disposition

This commit is contained in:
blank X 2021-05-21 17:13:15 +07:00
parent 0bb724dcc1
commit ec9036e5a0
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ async def handler(request):
}
if content_type := query.get('Content-Type'):
headers['Content-Type'] = content_type
if content_disposition := query.get('Content-Disposition'):
headers['Content-Disposition'] = content_disposition
async def download():
tmp_offset = offset