http: add removeIf() header map function#12160
Conversation
To be used by out of tree extensions. Signed-off-by: Matt Klein <mklein@lyft.com>
jmarantz
left a comment
There was a problem hiding this comment.
Couple of minor comments; I'm fine leaving things as they are too.
Signed-off-by: Matt Klein <mklein@lyft.com>
|
@jmarantz updated |
|
Hmm I am seeing appends in the |
|
Just confirmed -- reverting this change makes the appends in Clarification: The issue started somewhere between these changes: Added watchdog support for a Multi-Kill threshold. #12108 I am going to revert just #12160 locally, to confirm it's causing this. |
|
Ok -- per @fishcakez this is probably related to the fact that we historically used So that's probably the issue, I'll confirm in a bit. We might still want to do something about this, since it might bite others. |
|
Hmm, I wouldn't think there would be a behavior change here but |
|
Instead of using After this change, I think it's more of our mistake for manipulating the If we don't fix it we could at least clarify the docs or disallow referencing the |
|
OK let me look at this a bit and get back to you. |
|
OK I see the issue, basically the old path was doing the host -> authority translation and the new path is not. @rgs1 I agree to be on the safe side I will go ahead and fix this. Can I fix this tomorrow or do you need this reverted urgently? |
No rush on our end, we got unblocked by moving over to using |
#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>
#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>
To be used by out of tree extensions. Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Kevin Baichoo <kbaichoo@google.com>
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>
To be used by out of tree extensions. Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: scheler <santosh.cheler@appdynamics.com>
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>
To be used by out of tree extensions.
Risk Level: Low
Testing: New tests and existing
Docs Changes: N/A
Release Notes: N/A