From 8483bef288daf1f5d0392dafe435185f0c8a85e4 Mon Sep 17 00:00:00 2001 From: lixiaofei123 <326256365@qq.com> Date: Thu, 2 Mar 2023 17:48:51 +0800 Subject: [PATCH] Update main.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决压缩下载文件是txt的bug --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9bba660..babf833 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func CompressFile(rw http.ResponseWriter, r *http.Request) { return } - outFile := fmt.Sprintf("output/%s_%s_%s.txt", setting, uuid[:6], handler.Filename) + outFile := fmt.Sprintf("output/%s_%s_%s", setting, uuid[:6], handler.Filename) go func(uuid string, dataLen int) {