fix: default max body size 1Gi
This commit is contained in:
1 parent
105d26efe4
commit
aac6c67a5f
8 files changed
+148
-15
No files matched your search
@@ -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