1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 01:00:54 +00:00
This commit is contained in:
Ming Deng 2020-09-20 14:27:30 +00:00
parent e6a257f987
commit 2846043f2a

View File

@ -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()