fix: default max body size 1Gi
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user