distribution/registry/api/v2
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
..
descriptors.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
doc.go Move registry api definitions under registry package 2015-02-10 17:32:22 -08:00
errors.go Typo fixes in comments 2016-02-10 16:26:29 -08:00
headerparser.go Honor X-Forwarded-Port and Forwarded headers 2016-11-02 16:49:42 +01:00
headerparser_test.go Honor X-Forwarded-Port and Forwarded headers 2016-11-02 16:49:42 +01:00
routes.go Enable struct check 2018-08-06 13:55:43 -07:00
routes_test.go api: url typo in specification 2017-07-18 14:48:55 -07:00
urls.go Remove support for X-Forwarded-Port 2017-03-20 16:13:33 -07:00
urls_test.go Remove support for X-Forwarded-Port 2017-03-20 16:13:33 -07:00