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不在某个代理节点上时如何处理?