From 9303f250a315a2713fdd08ab9d2b7a8911f58c16 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 10 Jun 2022 17:26:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_convert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/ai_model_convert.go b/routers/repo/ai_model_convert.go index be3718b0a..e9e4f7d8c 100644 --- a/routers/repo/ai_model_convert.go +++ b/routers/repo/ai_model_convert.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "io/ioutil" - "net/http" "os" "strings" @@ -646,7 +645,8 @@ func ModelConvertDownloadModel(ctx *context.Context) { ctx.ServerError("PresignedGetURL", err) return } - http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently) + ctx.JSON(200, url) + //http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently) } else { }