registry: remove const for 'Docker-Distribution-Api-Version' header
This header was used for fallbacks to v1 registries, but it's no longer used, and marked optional / legacy in the OCI distribution-spec: https://github.com/opencontainers/distribution-spec/blob/v1.0.0/spec.md#legacy-docker-support-http-headers > Because of the origins this specification, the client MAY encounter > Docker-specific headers, such as `Docker-Content-Digest`, or > `Docker-Distribution-API-Version`. These headers are OPTIONAL and > clients SHOULD NOT depend on them. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
7d471d88a0
commit
b5835646eb
1 changed files with 0 additions and 4 deletions
|
@ -29,10 +29,6 @@ type serviceConfig struct {
|
|||
const (
|
||||
// DefaultNamespace is the default namespace
|
||||
DefaultNamespace = "docker.io"
|
||||
// DefaultRegistryVersionHeader is the name of the default HTTP header
|
||||
// that carries Registry version info
|
||||
DefaultRegistryVersionHeader = "Docker-Distribution-Api-Version"
|
||||
|
||||
// IndexHostname is the index hostname
|
||||
IndexHostname = "index.docker.io"
|
||||
// IndexServer is used for user auth and image search
|
||||
|
|
Loading…
Reference in a new issue