mirror of
https://github.com/distribution/distribution.git
synced 2025-07-20 10:10:14 +00:00
Merge pull request #1380 from aaronlehmann/avoid-empty-accept-header
Avoid empty Accept headers in client requests
This commit is contained in:
commit
08650825fe
@ -69,8 +69,10 @@ type Describable interface {
|
|||||||
// ManifestMediaTypes returns the supported media types for manifests.
|
// ManifestMediaTypes returns the supported media types for manifests.
|
||||||
func ManifestMediaTypes() (mediaTypes []string) {
|
func ManifestMediaTypes() (mediaTypes []string) {
|
||||||
for t := range mappings {
|
for t := range mappings {
|
||||||
|
if t != "" {
|
||||||
mediaTypes = append(mediaTypes, t)
|
mediaTypes = append(mediaTypes, t)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user