diff --git a/rpc/client_opt.go b/rpc/client_opt.go index 482755c888..6417d233ab 100644 --- a/rpc/client_opt.go +++ b/rpc/client_opt.go @@ -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 } }) }