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…
Reference in New Issue