fix: fetch model add header passthrough rule key check

This commit is contained in:
feitianbubu committed 2026-03-05 17:49:36 +08:00
1 parent 5df8b34f78
commit 42500b3317
2 files changed
+7

No files matched your search

+3
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 == "" {