fix: default max body size 1Gi

This commit is contained in:
loveuer
2024-06-14 17:39:00 +08:00
parent 105d26efe4
commit aac6c67a5f
8 changed files with 148 additions and 15 deletions

View File

@ -17,7 +17,6 @@ import (
"nf-repo/internal/opt"
"nf-repo/internal/util/r"
"nf-repo/internal/util/rerr"
"nf-repo/internal/util/tools"
"strings"
)
@ -187,8 +186,7 @@ func ProxyDownloadImage(mh interfaces.ManifestHandler, bh interfaces.BlobHandler
})
_ = c.Flush()
ctx := tools.TimeoutCtx(c.Request.Context())
if des, err = puller.Get(ctx, tn); err != nil {
if des, err = puller.Get(c.Request.Context(), tn); err != nil {
return r.Resp500(c, err.Error())
}