fix ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

closes #154
This commit is contained in:
2024-06-03 10:52:05 +02:00
parent 306e673f59
commit 4cc1ed681a

View File

@@ -195,7 +195,7 @@ func DownloadFile(w http.ResponseWriter, r *http.Request) {
if strings.Contains(filepath.Dir(filename), root) {
w.Header().Add(
"Content-Disposition",
"inline; filename="+filepath.Base(filename),
"inline; filename=\""+filepath.Base(filename)+"\"",
)
w.Header().Set(
"Content-Type",