mirror of
https://github.com/labstack/echo.git
synced 2025-04-17 12:06:44 +02:00
Fixed #131 - Use utf-8 encoding for bind and render API
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
4abea5d987
commit
c4357ca80b
8
echo.go
8
echo.go
@ -90,13 +90,13 @@ const (
|
|||||||
// Media types
|
// Media types
|
||||||
//-------------
|
//-------------
|
||||||
|
|
||||||
ApplicationJSON = "application/json"
|
ApplicationJSON = "application/json; charset=utf-8"
|
||||||
ApplicationXML = "application/xml"
|
ApplicationXML = "application/xml; charset=utf-8"
|
||||||
ApplicationForm = "application/x-www-form-urlencoded"
|
ApplicationForm = "application/x-www-form-urlencoded"
|
||||||
ApplicationProtobuf = "application/protobuf"
|
ApplicationProtobuf = "application/protobuf"
|
||||||
ApplicationMsgpack = "application/msgpack"
|
ApplicationMsgpack = "application/msgpack"
|
||||||
TextPlain = "text/plain"
|
TextHTML = "text/html ;charset=utf-8"
|
||||||
TextHTML = "text/html"
|
TextPlain = "text/plain ;charset=utf-8"
|
||||||
MultipartForm = "multipart/form-data"
|
MultipartForm = "multipart/form-data"
|
||||||
|
|
||||||
//---------
|
//---------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user