From b215cde48909e66b46b3a49cfcfd07bf4bbc56bd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 18:38:30 +0000 Subject: [PATCH 1/2] Initial plan From 845e6fdce506ae786f520a9305f4ae0953815321 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Feb 2026 18:42:00 +0000 Subject: [PATCH 2/2] Remove build_http_client_internal wrapper to reduce indirection Co-authored-by: manthanabc <48511543+manthanabc@users.noreply.github.com> --- crates/paws_infra/src/auth/http/qwen.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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)]