mirror of
https://github.com/astaxie/beego.git
synced 2024-11-24 22:20:53 +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