Fix endpoint condition source handling

This commit is contained in:
fawney19
2026-05-07 15:56:22 +08:00
parent 6317587a6b
commit 2b439094c5
5 changed files with 49 additions and 11 deletions

View File

@@ -140,7 +140,7 @@ export interface BodyRuleConditionLeaf {
path: string
op: BodyRuleConditionOp
value?: unknown // exists / not_exists 不需要 value
source?: 'request_headers' // 不填表示请求体;填 request_headers 表示请求头
source?: 'body' | 'current' | 'original' | 'request_headers' | 'headers'
}
export interface BodyRuleConditionAll {