Renaming Context.Req to Context.Request

This commit is contained in:
Manu Mtz-Almeida
2014-07-08 16:57:04 +02:00
parent 6b6ec5be77
commit 2078ecd8e1
4 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func (c *Context) EnsureBody(item interface{}) bool {
// DEPRECATED use bindings directly
// Parses the body content as a JSON input. It decodes the json payload into the struct specified as a pointer.
func (c *Context) ParseBody(item interface{}) error {
return binding.JSON.Bind(c.Req, item)
return binding.JSON.Bind(c.Request, item)
}
// DEPRECATED use gin.Static() instead