fix: force octet-stream for attachment downloads (#5942)

This commit is contained in:
mehmet turac authored and GitHub committed 2026-06-03 11:59:17 +02:00
1 parent f5e0c4e2e1
commit 103acd15fe
2 files changed
+9

No files matched your search

+1
View File
@@ -77,6 +77,7 @@ func setContentDisposition(w http.ResponseWriter, r *http.Request, file *files.F
} else {
// As per RFC6266 section 4.3
w.Header().Set("Content-Disposition", "attachment; filename*=utf-8''"+url.PathEscape(file.Name))
w.Header().Set("Content-Type", "application/octet-stream")
}
}