1
0
mirror of https://github.com/astaxie/beego.git synced 2025-01-22 15:27:14 +00:00
Simon Rawet 52c4c1fb98 Added MaxMemory limit to CopyBody()
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()
2015-12-16 10:37:21 +01:00
..
2015-11-11 13:47:36 +08:00
2015-12-11 00:20:17 +08:00
2015-12-16 10:37:21 +01:00
2015-12-10 21:59:54 +08:00