mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-19 16:46:58 +00:00
Merge branch 'master' of github.com:Quiq/docker-registry-ui
This commit is contained in:
commit
0a268746c9
@ -69,7 +69,7 @@ func NewClient(url string, verifyTLS bool, username, password string) *Client {
|
|||||||
c.logger.Warn("No token auth service discovered from ", c.url)
|
c.logger.Warn("No token auth service discovered from ", c.url)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
} else if strings.HasPrefix(authHeader, "Basic") {
|
} else if strings.HasPrefix(strings.ToLower(authHeader), strings.ToLower("Basic")) {
|
||||||
c.request = c.request.SetBasicAuth(c.username, c.password)
|
c.request = c.request.SetBasicAuth(c.username, c.password)
|
||||||
c.logger.Info("It was discovered the registry is configured with HTTP basic auth.")
|
c.logger.Info("It was discovered the registry is configured with HTTP basic auth.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user