From 689acecd44e1c81dd246c03608499fe225f45c70 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Wed, 9 Oct 2024 10:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/internal/http/object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/http/object.go b/client/internal/http/object.go index f826a28..30b508c 100644 --- a/client/internal/http/object.go +++ b/client/internal/http/object.go @@ -121,7 +121,7 @@ func (s *ObjectService) Download(ctx *gin.Context) { n, err := io.Copy(ctx.Writer, file.File) if err != nil { - ctx.String(http.StatusInternalServerError, err.Error()) + log.Warnf("copying file: %s", err.Error()) } // TODO 当client不在某个代理节点上时如何处理?