From 9e6a7a0d811d2d9780a507485150787302b09cfd Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 15 May 2026 23:45:26 +0800 Subject: [PATCH] - Fix proxy test helper clippy warning - Mark `should_force_identity_encoding` as test-only. - Keep runtime forwarding behavior unchanged. - Verified with local CI checks and no-bundle Tauri build. --- src-tauri/src/proxy/forwarder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/proxy/forwarder.rs b/src-tauri/src/proxy/forwarder.rs index 74996b429..3c28637e8 100644 --- a/src-tauri/src/proxy/forwarder.rs +++ b/src-tauri/src/proxy/forwarder.rs @@ -2190,6 +2190,7 @@ fn is_streaming_request(endpoint: &str, body: &Value, headers: &axum::http::Head .unwrap_or(false) } +#[cfg(test)] fn should_force_identity_encoding( endpoint: &str, body: &Value,