Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
9303f250a3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/ai_model_convert.go

+ 2
- 2
routers/repo/ai_model_convert.go View File

@@ -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 {

}


Loading…
Cancel
Save