This commit is contained in:
Nikos Tsipinakis 2026-05-21 13:47:24 +07:00 committed by GitHub
commit b94ca768d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,11 +359,7 @@ func (ah *AuthHandler) Run(ctx context.Context, am AuthMethod) error {
})
clientToUse = wrapClient
}
for key, values := range header {
for _, value := range values {
clientToUse.AddHeader(key, value)
}
}
clientToUse.SetHeaders(header)
// This should only happen if there's no preloaded token (regular auto-auth login)
// or if a preloaded token has expired and is now switching to auto-auth.