Merge pull request #1380 from aaronlehmann/avoid-empty-accept-header
Avoid empty Accept headers in client requests
This commit is contained in:
commit
08650825fe
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ 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 {
|
||||||
mediaTypes = append(mediaTypes, t)
|
if t != "" {
|
||||||
|
mediaTypes = append(mediaTypes, t)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue