mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 07:40:39 +00:00
Merge branch 'develop' of https://github.com/astaxie/beego into develop
This commit is contained in:
@ -315,7 +315,7 @@ func (input *BeegoInput) Session(key interface{}) interface{} {
|
||||
|
||||
// CopyBody returns the raw request body data as bytes.
|
||||
func (input *BeegoInput) CopyBody(MaxMemory int64) []byte {
|
||||
safe := &io.LimitedReader{R:input.Context.Request.Body, N:MaxMemory}
|
||||
safe := &io.LimitedReader{R: input.Context.Request.Body, N: MaxMemory}
|
||||
requestbody, _ := ioutil.ReadAll(safe)
|
||||
input.Context.Request.Body.Close()
|
||||
bf := bytes.NewBuffer(requestbody)
|
||||
|
Reference in New Issue
Block a user