mirror of
https://github.com/alibaba/higress.git
synced 2026-05-31 08:07:26 +08:00
Sync inner fix (#634)
This commit is contained in:
@@ -74,11 +74,7 @@ type Ingress struct {
|
||||
}
|
||||
|
||||
func (i *Ingress) NeedRegexMatch() bool {
|
||||
if i.Rewrite == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return i.Rewrite.RewriteTarget != "" || i.IsPrefixRegexMatch() || i.IsFullPathRegexMatch()
|
||||
return i.Rewrite != nil && (i.IsPrefixRegexMatch() || i.IsFullPathRegexMatch())
|
||||
}
|
||||
|
||||
func (i *Ingress) IsPrefixRegexMatch() bool {
|
||||
|
||||
Reference in New Issue
Block a user