mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
add init
This commit is contained in:
parent
5460b28fa4
commit
7b5e039998
@ -801,6 +801,7 @@ func (c *Context) GetHeader(key string) string {
|
|||||||
// GetRawData return stream data.
|
// GetRawData return stream data.
|
||||||
func (c *Context) GetRawData() ([]byte, error) {
|
func (c *Context) GetRawData() ([]byte, error) {
|
||||||
// return ioutil.ReadAll(c.Request.Body)
|
// return ioutil.ReadAll(c.Request.Body)
|
||||||
|
c.initFormCache()
|
||||||
return c.rawData, nil
|
return c.rawData, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user