Add default Content-Disposition header for download (#981)

This commit is contained in:
Arnaud 2025-01-16 14:25:26 +01:00 committed by GitHub
parent 68ad804f9e
commit 4606726e27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()