fix: correct missing new-lines

This commit is contained in:
2026-11-12 12:05:21 +01:00
parent 2617ad656c
commit 85784ef578
2 changed files with 40 additions and 63 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func handlePdf(re *core.RequestEvent, s3 *storage.Client) error {
if err != nil {
return re.JSON(500, map[string]any{"message": "S3 download failed", "error": err.Error()})
}
re.Response.Header().Set("Content-Disposition", "inline; filename=""+fileName(key)+""")
re.Response.Header().Set("Content-Disposition", "inline; filename=\""+fileName(key)+"\"")
return re.Blob(200, "application/pdf", data)
}