mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
Merge 0bd3cfbf0c into dddbaa4bf3
This commit is contained in:
commit
a534d9f475
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ func WithHeaders(headers http.Header) ClientOption {
|
||||||
return optionFunc(func(cfg *clientConfig) {
|
return optionFunc(func(cfg *clientConfig) {
|
||||||
cfg.initHeaders()
|
cfg.initHeaders()
|
||||||
for k, vs := range headers {
|
for k, vs := range headers {
|
||||||
cfg.httpHeaders[k] = vs
|
cfg.httpHeaders[http.CanonicalHeaderKey(k)] = vs
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue