fix: fetch model add header passthrough rule key check

This commit is contained in:
feitianbubu
2026-03-05 17:49:04 +08:00
parent 56c971691b
commit 1b85b183e6
2 changed files with 7 additions and 0 deletions

View File

@@ -100,6 +100,9 @@ func getHeaderPassthroughRegex(pattern string) (*regexp.Regexp, error) {
return compiled, nil
}
func IsHeaderPassthroughRuleKey(key string) bool {
return isHeaderPassthroughRuleKey(key)
}
func isHeaderPassthroughRuleKey(key string) bool {
key = strings.TrimSpace(key)
if key == "" {