You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src-tauri/src/platforms/common/http_client.rs
+115-2Lines changed: 115 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,13 @@ use std::time::Duration;
6
6
pubconstDEFAULT_USER_AGENT:&str = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36";
let count:i32 = 15;// Number of items requested per page, explicitly typed as i32
85
86
86
-
// For this test, create a new client, similar to the user's test snippet
87
-
let local_client = reqwest::Client::builder()
88
-
.build()
89
-
.map_err(|e| format!("Failed to build local reqwest client: {}", e))?;
87
+
// 使用直连HTTP客户端,绕过所有代理设置
88
+
let local_client = HttpClient::new_direct_connection()
89
+
.map_err(|e| format!("Failed to create direct connection HttpClient: {}", e))?;
90
90
91
91
// Use hardcoded ttwid and odin_tt from the user's working test for now
92
92
let hardcoded_odin_tt = "54c68ba8fa8ce792ad017c55272d171c283baedc87b2f6282ca8706df295cbd89c5d55449b587b7ebe0a2e352e394a86975955c9ed7f98f209996bdca2749479619aceecc7b75c2374e146b5a722b2e1";
0 commit comments