From 8b71b4a842dd23369669cc6e5836122e77d8d3b1 Mon Sep 17 00:00:00 2001 From: Daniel Ortiz Date: Fri, 4 Nov 2022 13:01:42 +0100 Subject: [PATCH] Set the request Host in the integration tests requests if the Host header exists. Signed-off-by: Daniel Ortiz --- tests/integration.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration.go b/tests/integration.go index 32c7dec7..74e5a259 100644 --- a/tests/integration.go +++ b/tests/integration.go @@ -349,6 +349,11 @@ func newRequest(in Input) (*http.Request, error) { if err != nil { return nil, err } + + if host, ok := in.Header["Host"]; ok { + req.Host = host + } + for k, v := range in.Header { req.Header.Add(k, v) }