update return style

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-03-30 16:21:28 +08:00
parent 7189e9ba8b
commit c6ae08aa58

View File

@ -447,9 +447,8 @@ func (c *Context) GetHeader(key string) string {
}
// GetRawData return stream data
func (c *Context) GetRawData() (body []byte, err error) {
body, err = ioutil.ReadAll(c.Request.Body)
return
func (c *Context) GetRawData() ([]byte, error) {
return ioutil.ReadAll(c.Request.Body)
}
func (c *Context) SetCookie(