MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SanitizeCodexHeaderDefaults

Method SanitizeCodexHeaderDefaults

internal/config/config.go:941–947  ·  view source on GitHub ↗

SanitizeCodexHeaderDefaults trims surrounding whitespace from the configured Codex header fallback values.

()

Source from the content-addressed store, hash-verified

939// SanitizeCodexHeaderDefaults trims surrounding whitespace from the
940// configured Codex header fallback values.
941func (cfg *Config) SanitizeCodexHeaderDefaults() {
942 if cfg == nil {
943 return
944 }
945 cfg.CodexHeaderDefaults.UserAgent = strings.TrimSpace(cfg.CodexHeaderDefaults.UserAgent)
946 cfg.CodexHeaderDefaults.BetaFeatures = strings.TrimSpace(cfg.CodexHeaderDefaults.BetaFeatures)
947}
948
949// SanitizeClaudeHeaderDefaults trims surrounding whitespace from the
950// configured Claude fingerprint baseline values.

Callers 2

ParseConfigBytesFunction · 0.95
LoadConfigOptionalFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected