diff --git a/codex/rest/api.nim b/codex/rest/api.nim index 597e7386..b799bec6 100644 --- a/codex/rest/api.nim +++ b/codex/rest/api.nim @@ -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()