Skip to content

Cleanup: Use Envoy contains for header routing #5572

@davinci26

Description

@davinci26

Please describe the problem you have
[A clear, concise, description of the problem you are facing. What is the problem that feature X would solve for you?]

In func containsMatch(s string, ignoreCase bool) *envoy_route_v3.HeaderMatcher_StringMatch

func containsMatch(s string) *envoy_route_v3.HeaderMatcher_StringMatch {

we implement it with safe_regex matching but we can switch to use contains which is the native way of envoy to do this

See https://www.envoyproxy.io/docs/envoy/latest/api-v3/type/matcher/v3/string.proto

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions