Browse Source

Merge pull request '解决云脑1训练任务无法下载最新日志的问题' (#2236) from fix-2214 into V20220616

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2236
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
pull/2254/head
ychao_1983 3 years ago
parent
commit
d2352c95d0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/cloudbrain.go

+ 1
- 0
routers/repo/cloudbrain.go View File

@@ -1150,6 +1150,7 @@ func CloudBrainDownloadModel(ctx *context.Context) {
ctx.ServerError("PresignedGetURL", err) ctx.ServerError("PresignedGetURL", err)
return return
} }
ctx.Resp.Header().Set("Cache-Control", "max-age=0")
http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently) http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently)
} }




Loading…
Cancel
Save