mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-23 07:58:39 +00:00
Add default Content-Disposition header for download (#981)
This commit is contained in:
parent
68ad804f9e
commit
4606726e27
@ -102,7 +102,8 @@ proc retrieveCid(
|
|||||||
|
|
||||||
if manifest.filename.isSome:
|
if manifest.filename.isSome:
|
||||||
resp.setHeader("Content-Disposition", "attachment; filename=\"" & manifest.filename.get() & "\"")
|
resp.setHeader("Content-Disposition", "attachment; filename=\"" & manifest.filename.get() & "\"")
|
||||||
|
else:
|
||||||
|
resp.setHeader("Content-Disposition", "attachment")
|
||||||
|
|
||||||
await resp.prepareChunked()
|
await resp.prepareChunked()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user