From 2c53a4e2c7ededc1f07324d797430e8d4a0607a1 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 15 八月 2023 20:33:41 +0800
Subject: [PATCH] merge

---
 api/v1/file.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/api/v1/file.go b/api/v1/file.go
index 348a72c..bf86288 100644
--- a/api/v1/file.go
+++ b/api/v1/file.go
@@ -188,7 +188,7 @@
 	service.NewFileService().UpdateFile(file)
 
 	data, err := io.ReadAll(f)
-	c.Writer.Header().Set("Content-Type", "application/octect-stream")
+	c.Writer.Header().Set("Content-Type", "application/octet-stream")
 	c.Writer.Header().Set("Content-Disposition", "attachment;filename="+file.Name)
 	c.Writer.Write(data)
 }

--
Gitblit v1.8.0