lolly/internal/proxy/validate.go
xfy911 dc54d3822f docs(proxy): add package comments for proxy module
- Add package documentation for target_selector, utils, validate,
  cache_handler, and header_modifier files
- Include author attribution (xfy)
2026-06-03 15:28:53 +08:00

16 lines
429 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package proxy 提供反向代理的核心功能,支持请求转发、负载均衡、健康检查等特性。
//
// 包含代理验证相关的结构体,用于配置请求验证规则。
//
// 作者xfy
package proxy
import "strings"
// containsCRLF 检查字符串是否包含回车或换行字符。
//
// 用于防止 CRLF 注入攻击。
func containsCRLF(s string) bool {
return strings.ContainsAny(s, "\r\n")
}