-
Notifications
You must be signed in to change notification settings - Fork 33
feat(config): adds override_empty_host_header flag #132
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
feat(config): adds override_empty_host_header flag #132
Conversation
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.
If we move the overrides to a new struct it will simplify things in the future...
Allows a default Host header to be set in the `testoverride` section of the config: ``` --- testoverride: dest_addr: some.example.org input: headers: Host: another.example.org ``` It will take precedense over `dest_addr` if it is specified as well. It will only be set if the input stage does not already have a host header set. Falling back to using the DestAddr override if it's not specified.
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.
Thanks for putting this together! LGTM.
Aaaaaaaaweeeeesoooommmmeeeeee
…On Wed, 29 Mar 2023, 14:05 Felipe Zipitría, ***@***.***> wrote:
***@***.**** approved this pull request.
Thanks for putting this together! LGTM.
—
Reply to this email directly, view it on GitHub
<#132 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYAWIWBLJ2W4YVGWRZT3W6QQQPANCNFSM6AAAAAAVDOOKHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Great work! If possible, Please release a new version 👍 |
Thank you so much! |
The feature added in #63 replaces the empty host field with the destination address. It has conflicts with some CRS test that are trying to send on purpose empty or missing host headers.
It happens only when
dest_addr
override is in place, for this reason CRS tests against apache are still running smoothly.This PR implements @theseion idea, adding the
override_empty_host_header
flag that enables this feature, permitting, by default, to keep running CRS tests as intended.More context in the issue: #129.
Thanks the feedbacks!
tentatively closes #129