distribution/registry/client
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
..
auth Enable struct check 2018-08-06 13:55:43 -07:00
transport Enable static checks 2018-08-06 14:49:11 -07:00
blob_writer_test.go Add ability to pass in substitution args into an Error 2015-07-15 11:02:10 -07:00
blob_writer.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
errors_test.go Include status code in UnexpectedHTTPResponseError 2016-03-15 09:03:56 -07:00
errors.go Update oauth errors to use api errors 2016-11-09 19:29:18 -08:00
repository_test.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
repository.go Enable struct check 2018-08-06 13:55:43 -07:00