Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
69816f86
"frontend/src/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "6c469b42ed5bf928c680ca7b4c7edc01db34677e"
Commit
69816f86
authored
Feb 08, 2026
by
erio
Browse files
fix: remove unused upstreamHopByHopHeaders variable to pass golangci-lint
parent
3c936441
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/antigravity_gateway_service.go
View file @
69816f86
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment