diff --git a/crates/paws_infra/src/auth/http/qwen.rs b/crates/paws_infra/src/auth/http/qwen.rs index bb61a02b..26b25cf1 100644 --- a/crates/paws_infra/src/auth/http/qwen.rs +++ b/crates/paws_infra/src/auth/http/qwen.rs @@ -79,7 +79,7 @@ impl QwenHttpProvider { code_challenge_method: "S256".to_string(), }; - let client = Self::build_http_client_internal(config)?; + let client = build_http_client(config.custom_headers.as_ref())?; let response = client .post(config.auth_url.as_str()) .header("Content-Type", "application/x-www-form-urlencoded") @@ -109,7 +109,7 @@ impl QwenHttpProvider { code_verifier: code_verifier.to_string(), }; - let client = Self::build_http_client_internal(config)?; + let client = build_http_client(config.custom_headers.as_ref())?; let response = client .post(config.token_url.as_str()) .header("Content-Type", "application/x-www-form-urlencoded") @@ -139,10 +139,6 @@ impl QwenHttpProvider { expires_in, )) } - - fn build_http_client_internal(config: &OAuthConfig) -> anyhow::Result { - build_http_client(config.custom_headers.as_ref()) - } } #[cfg(test)]