Avoid empty Accept headers in client requests
One of the keys in the manifest media type map is an empty string. This should not be sent as an Accept header. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
182bddcf11
commit
acf02bead3
1 changed files with 3 additions and 1 deletions
|
@ -69,8 +69,10 @@ type Describable interface {
|
|||
// ManifestMediaTypes returns the supported media types for manifests.
|
||||
func ManifestMediaTypes() (mediaTypes []string) {
|
||||
for t := range mappings {
|
||||
if t != "" {
|
||||
mediaTypes = append(mediaTypes, t)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue