-
Notifications
You must be signed in to change notification settings - Fork 844
This fixes parsing where the [ ] section gets merged into values #5423
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
Conversation
|
This fixes a regression Comcast found on the 8.1.x branch. If we're moving along with 8.1.x as-is, this (or something like this) needs to be back ported there too. |
bb3599d to
bb08592
Compare
For example:
cond %{SEND_RESPONSE_HDR_HOOK}
set-header X-First "First"
set-header X-Last "Last" [L]
would set the header X-Last: Last [L].
In addition, it also fixes a typo (I think?) in an unrelated test,
however, it's unclear as to why it's not failing that test.
CHECK_EQ(p.get_tokens()[1], "%{METHOD}c”);
bb08592 to
3b0bfcd
Compare
jrushford
left a comment
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.
Looks good to me. I tested the header_rewrite plugin with set-header and the issue is resolved. The [L] is no-longer sent on the wire with the header and data.
… char (apache#6340) * Add header rewrite test to make sure we are not injecting end of rule characters in to an actual header This is a regression check for the issue fixed in apache#5423
… char (apache#6340) * Add header rewrite test to make sure we are not injecting end of rule characters in to an actual header This is a regression check for the issue fixed in apache#5423
For example:
would set the header X-Last: Last [L]