diff --git a/duplex_http_call.go b/duplex_http_call.go index 80f5f2e4..2cee4cf2 100644 --- a/duplex_http_call.go +++ b/duplex_http_call.go @@ -290,7 +290,7 @@ func (d *duplexHTTPCall) makeRequest() { defer close(d.responseReady) // Promote the header Host to the request object. - if host := d.request.Header.Get(headerHost); len(host) > 0 { + if host := getHeaderCanonical(d.request.Header, headerHost); len(host) > 0 { d.request.Host = host } if d.onRequestSend != nil {