Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VerifyHost handler to ghttp #698

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Conversation

tlwr
Copy link
Contributor

@tlwr tlwr commented Sep 27, 2023

What

Adds a new handler to ghttp to verify the Host field of http.Request

Why

Host is a field on the http.Request struct and it is useful to test that its value is correctly set.

One cannot rely on checking the header (ie by VerifyHeader) alone

Host is a field on the http.Request struct and it is useful to test that
its value is correctly set. One cannot rely on checking the header (ie
by VerifyHeader) alone

Signed-off-by: toby lorne <[email protected]>
@onsi
Copy link
Owner

onsi commented Sep 28, 2023

lgtm, thanks!

@onsi onsi merged commit 0b03b36 into onsi:master Sep 28, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants