Closed woodsaj closed 7 years ago
so something like this should do the needful, I think:
if dummyRequest.Host != "" {
request.Host = dummyRequest.Host
}
yep, exactly that.
ok, I'll throw that in the downloadLimit branch
If a user sets a "host" header in the check "headers" configuration it is not currently honored.
As documented in https://golang.org/pkg/net/http/#Request, to override the host you need to set request.Host