This commit is contained in:
cui 2026-07-17 21:53:00 -07:00 committed by GitHub
commit a534d9f475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ func WithHeaders(headers http.Header) ClientOption {
return optionFunc(func(cfg *clientConfig) {
cfg.initHeaders()
for k, vs := range headers {
cfg.httpHeaders[k] = vs
cfg.httpHeaders[http.CanonicalHeaderKey(k)] = vs
}
})
}