mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 22:30:54 +00:00
complete condition
This commit is contained in:
parent
cbb3de741d
commit
3c48719999
@ -723,7 +723,11 @@ func (p *ControllerRegister) serveHttp(ctx *beecontext.Context) {
|
|||||||
err = ctx.Input.ParseFormOrMultiForm(p.cfg.MaxMemory)
|
err = ctx.Input.ParseFormOrMultiForm(p.cfg.MaxMemory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Error(err)
|
logs.Error(err)
|
||||||
|
if strings.Contains(err.Error(), `http: request body too large`) {
|
||||||
exception("413", ctx)
|
exception("413", ctx)
|
||||||
|
} else {
|
||||||
|
exception("500", ctx)
|
||||||
|
}
|
||||||
goto Admin
|
goto Admin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user