diff --git a/src/client/credentials.rs b/src/client/credentials.rs index e6c3b28..459aec2 100644 --- a/src/client/credentials.rs +++ b/src/client/credentials.rs @@ -39,7 +39,7 @@ pub fn check_status(profile_config: &config::ProfileConfig) -> AuthStatus { }; let url = format!("{}/workspaces", profile_config.api_url); - let client = reqwest::blocking::Client::new(); + let client = crate::client::raw_http::build_http_client(); let req = client .get(&url) .header("Authorization", format!("Bearer {access_token}")); diff --git a/src/commands/auth.rs b/src/commands/auth.rs index 6ea6201..9138ceb 100644 --- a/src/commands/auth.rs +++ b/src/commands/auth.rs @@ -440,7 +440,7 @@ fn cache_workspaces( access_token: &str, ) -> Result, String> { let url = format!("{}/workspaces", profile.api_url); - let client = reqwest::blocking::Client::new(); + let client = crate::client::raw_http::build_http_client(); let req = client .get(&url) .header("Authorization", format!("Bearer {access_token}")); @@ -485,7 +485,7 @@ fn api_key_authorized_workspaces( return Vec::new(); }; let url = format!("{}/workspaces", profile_config.api_url); - let client = reqwest::blocking::Client::new(); + let client = crate::client::raw_http::build_http_client(); let req = client .get(&url) .header("Authorization", format!("Bearer {access_token}"));