Not sure if that can be triggered in real scenarios.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
}
request, err := http.NewRequest(httpConfig.Method, targetURL.String(), body)
- request.Host = origHost
- request = request.WithContext(ctx)
if err != nil {
level.Error(logger).Log("msg", "Error creating request", "err", err)
return
}
+ request.Host = origHost
+ request = request.WithContext(ctx)
for key, value := range httpConfig.Headers {
if strings.Title(key) == "Host" {