gin/render
Vincent Bernat 9c61295efe
chore(header): Add support for RFC 9512: application/yaml (#3851)
* fix(binding): support application/yaml

RFC 9512 defines application/yaml as the official YAML MIME type.
application/x-yaml is deprecated. In this commit, we ensure it is
recognized correctly in Content-Type.

* fix(render): use application/yaml when rendering YAML

As per RFC 9512, application/x-yaml is now deprecated and applications
should use application/yaml. This commit fix the Content-Type header
when rendering YAML.
2024-03-05 21:54:35 +08:00
..
data.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
html.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
json.go Stop useless panicking in context and render (#2150) 2023-02-12 10:01:33 +08:00
msgpack.go chore: support min go version 1.18 (#3511) 2023-03-01 10:03:48 +08:00
protobuf.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
reader_test.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
reader.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
redirect.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
render_msgpack_test.go chore: support min go version 1.18 (#3511) 2023-03-01 10:03:48 +08:00
render_test.go chore(header): Add support for RFC 9512: application/yaml (#3851) 2024-03-05 21:54:35 +08:00
render.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
text.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
toml.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
xml.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
yaml.go chore(header): Add support for RFC 9512: application/yaml (#3851) 2024-03-05 21:54:35 +08:00