This PR allows the Host request header to override the http request host. The Go standard net/http library intentionally ignores the Host request header when writing the http request. If there is a Host request header, we override the http.Request.Host before the request is sent.
Closes: #311
This PR allows the
Host
request header to override the http request host. The Go standardnet/http
library intentionally ignores theHost
request header when writing the http request. If there is aHost
request header, we override thehttp.Request.Host
before the request is sent.