go-ozzo / ozzo-routing

An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.
MIT License
455 stars 51 forks source link

Need to set utf-8 for json TypeNegotiator #62

Closed Kalinin-Andrey closed 3 years ago

Kalinin-Andrey commented 3 years ago

Perhaps, you just forgot to specify the encoding here.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 93.931% when pulling 389595e9e359f60d2090635901fa2a536968d119 on Kalinin-Andrey:patch-1 into cc9c25af53638e19316b6b1913ef2cb48147a7f3 on go-ozzo:master.

qiangxue commented 3 years ago

no need to set charset since json always assumes utf8.