1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Minor spelling correction of protocoll -> protocol

This commit is contained in:
Dan Buch 2013-09-23 23:14:42 -04:00
parent 30b759ffa9
commit a7db125480

View file

@ -239,7 +239,7 @@ func (config *ConfigFile) ResolveAuthConfig(registry string) AuthConfig {
// as there is only one auth entry which is fully qualified we need to start
// parsing and matching
swapProtocoll := func(url string) string {
swapProtocol := func(url string) string {
if strings.HasPrefix(url, "http:") {
return strings.Replace(url, "http:", "https:", 1)
}
@ -253,9 +253,9 @@ func (config *ConfigFile) ResolveAuthConfig(registry string) AuthConfig {
if c, found := config.Configs[url]; found {
return c
}
registrySwappedProtocoll := swapProtocoll(url)
registrySwappedProtocol := swapProtocol(url)
// now try to match with the different protocol
if c, found := config.Configs[registrySwappedProtocoll]; found {
if c, found := config.Configs[registrySwappedProtocol]; found {
return c
}
return AuthConfig{}