diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/auth/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 8e4cb6959..9a4e2af85 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -34,8 +34,8 @@ const XRegistryConfigHeader HeaderAuthName = "X-Registry-Config" // the necessary authentication information for libpod operations func GetCredentials(r *http.Request) (*types.DockerAuthConfig, string, error) { has := func(key HeaderAuthName) bool { - hdr, found := r.Header[key.String()] - return found && len(hdr) > 0 + hdr := r.Header.Values(key.String()) + return len(hdr) > 0 } switch { case has(XRegistryConfigHeader): |