Skip to content

http: restore previous HeaderMap::remove() behavior#12244

Merged
mattklein123 merged 1 commit intomasterfrom
fix_remove
Jul 23, 2020
Merged

http: restore previous HeaderMap::remove() behavior#12244
mattklein123 merged 1 commit intomasterfrom
fix_remove

Conversation

@mattklein123
Copy link
Copy Markdown
Member

#12160 changed
the behavior of remove() to not first look in the inline
header map for a header. This is a subtle change in
behavior that specifically breaks attempting to remove
":authority" via the "host" mapping. This restores that
behavior and is thus a bug fix and low risk.

Risk Level: Low
Testing: New UT
Docs Changes: N/A
Release Notes: N/A

#12160 changed
the behavior of remove() to not first look in the inline
header map for a header. This is a subtle change in
behavior that specifically breaks attempting to remove
":authority" via the "host" mapping. This restores that
behavior and is thus a bug fix and low risk.

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Copy Markdown
Member Author

cc @rgs1

@rgs1
Copy link
Copy Markdown
Member

rgs1 commented Jul 23, 2020

Didn't test internally, but LGTM.

@mattklein123 mattklein123 merged commit 21e41f3 into master Jul 23, 2020
@mattklein123 mattklein123 deleted the fix_remove branch July 23, 2020 17:37
KBaichoo pushed a commit to KBaichoo/envoy that referenced this pull request Jul 30, 2020
envoyproxy#12160 changed
the behavior of remove() to not first look in the inline
header map for a header. This is a subtle change in
behavior that specifically breaks attempting to remove
":authority" via the "host" mapping. This restores that
behavior and is thus a bug fix and low risk.

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Kevin Baichoo <kbaichoo@google.com>
chaoqin-li1123 pushed a commit to chaoqin-li1123/envoy that referenced this pull request Aug 7, 2020
envoyproxy#12160 changed
the behavior of remove() to not first look in the inline
header map for a header. This is a subtle change in
behavior that specifically breaks attempting to remove
":authority" via the "host" mapping. This restores that
behavior and is thus a bug fix and low risk.

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: chaoqinli <chaoqinli@google.com>
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.

3 participants