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