"git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "e8671fd7c2ddd45ff5aca090bc45362d010ce66f"
Unverified Commit 19ea392d authored by Wesley Liddick's avatar Wesley Liddick Committed by GitHub
Browse files

Merge pull request #663 from touwaeriol/fix/update-antigravity-useragent-version

fix: update antigravity user-agent version to 1.19.6
parents fb4d0161 afec747d
...@@ -49,8 +49,8 @@ const ( ...@@ -49,8 +49,8 @@ const (
antigravityDailyBaseURL = "https://daily-cloudcode-pa.sandbox.googleapis.com" antigravityDailyBaseURL = "https://daily-cloudcode-pa.sandbox.googleapis.com"
) )
// defaultUserAgentVersion 可通过环境变量 ANTIGRAVITY_USER_AGENT_VERSION 配置,默认 1.18.4 // defaultUserAgentVersion 可通过环境变量 ANTIGRAVITY_USER_AGENT_VERSION 配置,默认 1.19.6
var defaultUserAgentVersion = "1.18.4" var defaultUserAgentVersion = "1.19.6"
// defaultClientSecret 可通过环境变量 ANTIGRAVITY_OAUTH_CLIENT_SECRET 配置 // defaultClientSecret 可通过环境变量 ANTIGRAVITY_OAUTH_CLIENT_SECRET 配置
var defaultClientSecret = "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" var defaultClientSecret = "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"
......
...@@ -690,7 +690,7 @@ func TestConstants_值正确(t *testing.T) { ...@@ -690,7 +690,7 @@ func TestConstants_值正确(t *testing.T) {
if RedirectURI != "http://localhost:8085/callback" { if RedirectURI != "http://localhost:8085/callback" {
t.Errorf("RedirectURI 不匹配: got %s", RedirectURI) t.Errorf("RedirectURI 不匹配: got %s", RedirectURI)
} }
if GetUserAgent() != "antigravity/1.18.4 windows/amd64" { if GetUserAgent() != "antigravity/1.19.6 windows/amd64" {
t.Errorf("UserAgent 不匹配: got %s", GetUserAgent()) t.Errorf("UserAgent 不匹配: got %s", GetUserAgent())
} }
if SessionTTL != 30*time.Minute { if SessionTTL != 30*time.Minute {
......
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