fix: fix nil deref in config set command (#5641)

Co-authored-by: Henrique Dias <mail@hacdias.com>
This commit is contained in:
Brendan Jackman 2025-12-28 21:04:59 +00:00 committed by GitHub
parent 79d1aa9229
commit 60b1ee8bb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,7 +99,7 @@ func getProxyAuth(flags *pflag.FlagSet, defaultAuther map[string]interface{}) (a
return nil, err
}
if header == "" {
if header == "" && defaultAuther != nil {
header = defaultAuther["header"].(string)
}