1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-01 03:40:19 +00:00

refactor: log error when payload too large

This commit is contained in:
Chenrui
2020-07-09 09:45:40 +08:00
parent 03f78b2e4a
commit c3f14a0ad6
3 changed files with 10 additions and 7 deletions

View File

@ -726,7 +726,7 @@ func TestRouterEntityTooLargeCopyBody(t *testing.T) {
BConfig.CopyRequestBody = _CopyRequestBody
BConfig.MaxMemory = _MaxMemory
if w.Code != 413 {
if w.Code != http.StatusRequestEntityTooLarge {
t.Errorf("TestRouterRequestEntityTooLarge can't run")
}
}