Skip to content

Commit

Permalink
Set the request Host in the integration tests requests if the Host he…
Browse files Browse the repository at this point in the history
…ader exists.

Signed-off-by: Daniel Ortiz <[email protected]>
  • Loading branch information
taik0 committed Nov 4, 2022
1 parent db4fb37 commit 8b71b4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8b71b4a

Please sign in to comment.