mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-26 02:29:15 +00:00
Add default Content-Disposition header for download
This commit is contained in:
parent
2b5a40559e
commit
cc05faaf37
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user