1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 23:40:50 +00:00
Beego/context
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
..
acceptencoder_test.go refactor encoder package 2015-11-11 13:47:36 +08:00
acceptencoder.go Revert "compress method fixed" 2015-12-15 14:05:33 +08:00
context.go pool.Put 2015-12-11 00:20:17 +08:00
input_test.go Fix subdomain, add test, space and comment fix 2014-12-17 12:06:53 +08:00
input.go Added MaxMemory limit to CopyBody() 2015-12-16 10:37:21 +01:00
output.go use sync.Pool to reuse Context 2015-12-10 21:59:54 +08:00