mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 08:38:03 +01:00
Merge pull request #9195 from ywk253100/190920_ignore_cred
Update the error log format
This commit is contained in:
commit
c38e566a7e
@ -56,7 +56,7 @@ func (sa *SecretAuthenticator) DoAuth(req *http.Request) error {
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(h, secretPrefix) {
|
||||
return fmt.Errorf("'%s' should start with '%s' but got '%s' now", authHeader, secretPrefix, h)
|
||||
return fmt.Errorf("'%s' should start with '%s'", authHeader, secretPrefix)
|
||||
}
|
||||
|
||||
secret := strings.TrimSpace(strings.TrimPrefix(h, secretPrefix))
|
||||
|
Loading…
Reference in New Issue
Block a user