mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-19 18:08:22 +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:
|
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