Commit 69816f86 authored by erio's avatar erio
Browse files

fix: remove unused upstreamHopByHopHeaders variable to pass golangci-lint

parent 3c936441
......@@ -47,21 +47,6 @@ const (
googleRPCReasonRateLimitExceeded = "RATE_LIMIT_EXCEEDED"
)
// upstreamHopByHopHeaders 透传请求头时需要排除的 hop-by-hop 头
var upstreamHopByHopHeaders = map[string]bool{
"connection": true,
"keep-alive": true,
"proxy-authenticate": true,
"proxy-authorization": true,
"proxy-connection": true,
"te": true,
"trailer": true,
"transfer-encoding": true,
"upgrade": true,
"host": true,
"content-length": true,
}
// antigravityPassthroughErrorMessages 透传给客户端的错误消息白名单(小写)
// 匹配时使用 strings.Contains,无需完全匹配
var antigravityPassthroughErrorMessages = []string{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment