Merge pull request #1380 from aaronlehmann/avoid-empty-accept-header

Avoid empty Accept headers in client requests
This commit is contained in:
Stephen Day 2016-01-20 15:38:07 -08:00
commit 08650825fe

View file

@ -69,7 +69,9 @@ type Describable interface {
// ManifestMediaTypes returns the supported media types for manifests.
func ManifestMediaTypes() (mediaTypes []string) {
for t := range mappings {
mediaTypes = append(mediaTypes, t)
if t != "" {
mediaTypes = append(mediaTypes, t)
}
}
return
}