Skip to content

Commit

Permalink
Merge pull request #618 from krakendio/host_integration_tests
Browse files Browse the repository at this point in the history
Set the request Host
  • Loading branch information
kpacha authored Nov 4, 2022
2 parents e61271c + 8b71b4a commit 882dd17
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 882dd17

Please sign in to comment.