distribution/registry
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 registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
auth default autoredirect to false 2019-01-04 11:05:12 -08:00
client registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
handlers registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware context: remove definition of Context 2017-08-11 15:53:31 -07:00
proxy typo fix from existant to existent 2018-09-13 19:37:13 +08:00
storage Fix some typos 2018-09-24 09:05:44 +08:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go add bugsnag logrus hook 2018-10-25 14:52:10 -07:00
registry_test.go Add support to gracefully shutdown the server 2018-08-20 10:01:26 -07:00
root.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00