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
b4ec6578
"backend/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "bd18f4b8ef2d1bbb713c362a5efbe20d4bc4fbc8"
Commit
b4ec6578
authored
Feb 08, 2026
by
shaw
Browse files
fix: apikey类型账号test去掉oauth-2025-04-20
parent
f3605ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/account_test_service.go
View file @
b4ec6578
...
...
@@ -245,7 +245,6 @@ func (s *AccountTestService) testClaudeAccountConnection(c *gin.Context, account
// Set common headers
req
.
Header
.
Set
(
"Content-Type"
,
"application/json"
)
req
.
Header
.
Set
(
"anthropic-version"
,
"2023-06-01"
)
req
.
Header
.
Set
(
"anthropic-beta"
,
claude
.
DefaultBetaHeader
)
// Apply Claude Code client headers
for
key
,
value
:=
range
claude
.
DefaultHeaders
{
...
...
@@ -254,8 +253,10 @@ func (s *AccountTestService) testClaudeAccountConnection(c *gin.Context, account
// Set authentication header
if
useBearer
{
req
.
Header
.
Set
(
"anthropic-beta"
,
claude
.
DefaultBetaHeader
)
req
.
Header
.
Set
(
"Authorization"
,
"Bearer "
+
authToken
)
}
else
{
req
.
Header
.
Set
(
"anthropic-beta"
,
claude
.
APIKeyBetaHeader
)
req
.
Header
.
Set
(
"x-api-key"
,
authToken
)
}
...
...
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