Add default Content-Disposition header for download

This commit is contained in:
Arnaud 2024-11-01 17:01:34 +01:00
parent 2b5a40559e
commit cc05faaf37
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ proc retrieveCid(
if manifest.filename.isSome:
resp.setHeader("Content-Disposition", "attachment; filename=\"" & manifest.filename.get() & "\"")
else:
resp.setHeader("Content-Disposition", "attachment")
await resp.prepareChunked()