Skip to content

Commit

Permalink
feat: 修复正则表达式不生效问题 (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan authored Oct 18, 2022
1 parent 54349b3 commit e1fe682
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apiserver/xdsserverv3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,10 @@ func makeRoutes(serviceInfo *ServiceInfo) []*route.Route {
headerMatch = &route.HeaderMatcher{
Name: headerSubName,
HeaderMatchSpecifier: &route.HeaderMatcher_StringMatch{
StringMatch: &v32.StringMatcher{MatchPattern: &v32.StringMatcher_SafeRegex{SafeRegex: &v32.RegexMatcher{Regex: matchString.GetValue().GetValue()}}},
StringMatch: &v32.StringMatcher{MatchPattern: &v32.StringMatcher_SafeRegex{
SafeRegex: &v32.RegexMatcher{
EngineType: &v32.RegexMatcher_GoogleRe2{GoogleRe2: &v32.RegexMatcher_GoogleRE2{}},
Regex: matchString.GetValue().GetValue()}}},
},
}
}
Expand Down

0 comments on commit e1fe682

Please sign in to comment.