From 9d6381d7ac91d51839814a9b350f8782c3042bc3 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Wed, 12 Jul 2023 07:57:13 +0100 Subject: [PATCH] Update file route --- route/v2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/route/v2.go b/route/v2.go index 3741ec87d..6348368cc 100644 --- a/route/v2.go +++ b/route/v2.go @@ -152,6 +152,7 @@ func InitFile() http.Handler { fileName := path.Base(filePath) w.Header().Add("Content-Disposition", "attachment; filename*=utf-8''"+url.PathEscape(fileName)) http.ServeFile(w, r, filePath) + //http.ServeFile(w, r, filePath) }) }