mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-03 17:46:36 +08:00
修复重写规则中没有匹配条件就无法生效的问题
This commit is contained in:
@@ -90,7 +90,7 @@ func (this *HTTPRewriteRule) MatchRequest(requestPath string, formatter func(sou
|
||||
}
|
||||
|
||||
// 判断条件
|
||||
if this.Conds != nil && !this.Conds.MatchRequest(formatter) {
|
||||
if this.Conds != nil && this.Conds.HasRequestConds() && !this.Conds.MatchRequest(formatter) {
|
||||
return "", nil, false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user