mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 12:00:51 +00:00
Fix UT
This commit is contained in:
parent
e6a257f987
commit
2846043f2a
@ -731,6 +731,8 @@ func TestRouterEntityTooLargeCopyBody(t *testing.T) {
|
||||
BConfig.CopyRequestBody = true
|
||||
BConfig.MaxMemory = 20
|
||||
|
||||
BeeApp.Cfg.CopyRequestBody = true
|
||||
BeeApp.Cfg.MaxMemory = 20
|
||||
b := bytes.NewBuffer([]byte("barbarbarbarbarbarbarbarbarbar"))
|
||||
r, _ := http.NewRequest("POST", "/user/123", b)
|
||||
w := httptest.NewRecorder()
|
||||
|
Loading…
Reference in New Issue
Block a user