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:
@ -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")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user