1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Change 'Context-Type' to 'Content-Type' in guide document (#788)

This commit is contained in:
imeoer 2016-12-26 01:23:05 -06:00 committed by Vishal Rana
parent 039394fdbc
commit 04ed761d41

View File

@ -11,7 +11,7 @@ description = "Handling HTTP request in Echo"
To bind request body into a Go type use `Context#Bind(i interface{})`.
The default binder supports decoding application/json, application/xml and
application/x-www-form-urlencoded data based on the Context-Type header.
application/x-www-form-urlencoded data based on the Content-Type header.
Example below binds the request payload into `User` struct based on tags:
@ -79,7 +79,7 @@ func (cb *CustomBinder) Bind(i interface{}, c echo.Context) (err error) {
}
// Define your custom implementation
return
}
```