mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-09 00:43:13 +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:
|
||||
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