Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix: apply global proxy to SpotifyAuth HTTP client requests
Tonho8a5ed4ab576e
diff --git a/src-tauri/src/core/auth.rs b/src-tauri/src/core/auth.rsindex 82d8825a..e208176f 100644--- a/src-tauri/src/core/auth.rs+++ b/src-tauri/src/core/auth.rs@@ -153,7 +153,7 @@ impl SpotifyAuth {verifier: &str,redirect_uri: &str,) -> anyhow::Result<AuthSession> {- let client = reqwest::Client::new();+ let client = crate::core::http_client::apply_global_proxy(reqwest::Client::builder()).build().unwrap_or_default();let resp = client.post("https://accounts.spotify.com/api/token").form(&[@@ -241,7 +241,7 @@ impl SpotifyAuth {.as_ref().ok_or_else(|| anyhow!("No refresh token available"))?;- let client = reqwest::Client::new();+ let client = crate::core::http_client::apply_global_proxy(reqwest::Client::builder()).build().unwrap_or_default();let resp = client.post("https://accounts.spotify.com/api/token").form(&[