Skip to content

Conversation

@zwoop
Copy link
Contributor

@zwoop zwoop commented May 5, 2019

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]

@zwoop zwoop added the Plugins label May 5, 2019
@zwoop zwoop added this to the 9.0.0 milestone May 5, 2019
@zwoop zwoop requested a review from randall May 5, 2019 19:22
@zwoop zwoop self-assigned this May 5, 2019
@zwoop
Copy link
Contributor Author

zwoop commented May 5, 2019

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.

@zwoop zwoop force-pushed the HeaderRewriteParsing branch from bb3599d to bb08592 Compare May 6, 2019 14:18
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”);
@zwoop zwoop force-pushed the HeaderRewriteParsing branch from bb08592 to 3b0bfcd Compare May 6, 2019 14:41
@zwoop zwoop requested a review from jrushford May 6, 2019 14:42
Copy link
Contributor

@jrushford jrushford left a 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.

@zwoop zwoop merged commit 6eb82a9 into apache:master May 7, 2019
@zwoop zwoop deleted the HeaderRewriteParsing branch May 7, 2019 14:40
ezelkow1 added a commit that referenced this pull request Jan 30, 2020
… char (#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 #5423
zwoop pushed a commit that referenced this pull request Feb 21, 2020
… char (#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 #5423

(cherry picked from commit a2e77e9)
zwoop pushed a commit that referenced this pull request May 14, 2020
… char (#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 #5423

(cherry picked from commit a2e77e9)
whutwhu pushed a commit to whutwhu/trafficserver that referenced this pull request May 23, 2020
… 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
brbzull0 pushed a commit to brbzull0/trafficserver that referenced this pull request Sep 2, 2020
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants