Merge pull request #9195 from ywk253100/190920_ignore_cred

Update the error log format
This commit is contained in:
Steven Zou 2019-09-25 14:41:32 +08:00 committed by GitHub
commit c38e566a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))