Closed johnk-novu closed 4 years ago
PR in the works, will re-target to this repo when it is closer to being "ready"
PR open https://github.com/aelsabbahy/goss/pull/565
Struggling to get test running locally due to some laptop issues, getting Go setup on another machine to run tests.
Confirmed make test-all
passes. PR should be good to go.
Closed by #565
Describe the bug Go's
net/http
library excludes/skips setting certain request headers, includingHost
.How To Reproduce Write a
goss
test that relies on a host header being set. See https://gist.github.com/johnk-novu/fd3671819c59da227296c54ef393411c for example.Expected Behavior
Host
header is presented to the webserver.Actual Behavior No
Host
header(s) are presented to the webserver.Environment:
master