From 4cc1ed681a16f5c2e785150d6b8960a09fc40ec8 Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Mon, 3 Jun 2024 10:52:05 +0200 Subject: [PATCH] fix ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION closes #154 --- server/handlers/archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handlers/archive.go b/server/handlers/archive.go index 765e900..f2e6643 100644 --- a/server/handlers/archive.go +++ b/server/handlers/archive.go @@ -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",