mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 23:40:50 +00:00
52c4c1fb98
Beego only uses the MaxMemory flag when using go's built in functions for parsing forms. However the CopyBody() function have no limit an will coppy anny amount of data into memory using ioutil.ReedAll() on the request body whitout anny size validation or limit. This fix wrapps input.Requst.Body in a LimitedReader using the same memory limit as ParseFormOrMulitForm() |
||
---|---|---|
.. | ||
acceptencoder_test.go | ||
acceptencoder.go | ||
context.go | ||
input_test.go | ||
input.go | ||
output.go |