distribution/registry/handlers
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_test.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
app.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
app_test.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
basicauth.go Move registry package into handler package 2015-02-10 17:25:40 -08:00
basicauth_prego14.go Move registry package into handler package 2015-02-10 17:25:40 -08:00
blob.go digest: migrate to opencontainers/go-digest 2017-01-06 15:42:03 -08:00
blobupload.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
catalog.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
context.go fix memory leak introduced in PR #2648 2018-08-14 16:41:45 -07:00
health_test.go Disable upload purging during test 2016-08-26 16:23:07 -07:00
helpers.go remove closenotifier 2018-09-11 16:14:10 -07:00
hmac.go handlers: provide better log message on mismatched secret 2016-09-02 15:24:35 -07:00
hmac_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
hooks.go moved Sirupsen to sirupsen on a case sensitive system 2017-06-23 20:28:48 +00:00
mail.go Enable static checks 2018-08-06 14:49:11 -07:00
manifests.go folow commit 9c88801a12 2018-06-18 13:55:24 -05:00
tags.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00