distribution/health
Luca Bruno 15b0204758
registry: fix binary JSON content-type
This fixes registry endpoints to return the proper `application/json`
content-type for JSON content, also updating spec examples for that.

As per IETF specification and IANA registry [0], the `application/json`
type is a binary media, so the content-type label does not need any
text-charset selector. Additionally, the media type definition
explicitly states that it has no required nor optional parameters,
which makes the current registry headers non-compliant.

[0]: https://www.iana.org/assignments/media-types/application/json

Signed-off-by: Luca Bruno <lucab@debian.org>
2019-01-14 09:04:42 +00:00
..
api Adding first version of HealthCheck 2015-03-20 14:38:40 -07:00
checks fix filechecker in health with precondition check 2016-12-06 10:13:55 +08:00
doc.go Documentation fix for package 'health'. Use proper import path for 'health/api' 2017-01-16 18:38:22 +01:00
health.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
health_test.go fix typos in comment 2017-02-27 14:06:18 +08:00