1
0
镜像自地址 https://github.com/astaxie/beego.git 已同步 2025-07-17 18:52:16 +00:00

complete condition

这个提交包含在:
Anker Jam
2020-10-19 00:22:55 +08:00
父节点 cbb3de741d
当前提交 3c48719999

查看文件

@@ -723,7 +723,11 @@ func (p *ControllerRegister) serveHttp(ctx *beecontext.Context) {
err = ctx.Input.ParseFormOrMultiForm(p.cfg.MaxMemory)
if err != nil {
logs.Error(err)
exception("413", ctx)
if strings.Contains(err.Error(), `http: request body too large`) {
exception("413", ctx)
} else {
exception("500", ctx)
}
goto Admin
}
}