-
Notifications
You must be signed in to change notification settings - Fork 472
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
Host header update #565
Host header update #565
Conversation
Confirmed tests pass, I think this is good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aelsabbahy it's ready for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small change requested.
Also, can you please update the docs to clarify that only the first Host: foo
value is honored.
Aside from that, looks great!
Co-Authored-By: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com>
…host_header_update
@aelsabbahy I made the documentation update, let me know what you think! |
Looks great. There's going to be a bit of juggling with other PRs.. but I should have this merged/released in the next ~2weeks. |
@aelsabbahy awesome thanks! looking forward to it, this will allow me to implement a very helpful test :) |
Awesome change, thank you! |
* readme update * set host properly header if present * uncomment fix; add test * add back os lib * remove printing to stderr/stdout * rename host header test * rename other duplicate test * remove unneeded lib * update test counts * ninja markdown edit * Update system/http.go Co-Authored-By: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com> * add note about host header * Revert documentation change since it was fixed with goss-org#582 Co-authored-by: Ahmed Elsabbahy <aelsabbahy@users.noreply.github.com> Co-authored-by: Ahmed Elsabbahy <elsabbahyahmed@yahoo.com>
Checklist
make test-all
(UNIX) passes. CI will also test thisDescription of change
Go's
http
ignores/removes certain headers (n1, n2), including but not limited to theHost
header. See: github issue and go sourceThis change detects the presence of that header (or headers) and sets it on the http request.
Issue opened: #564
I also took the liberty of making a couple of unrelated changes: