From 7a4114bae3009c0b52fe2490b08db14463a39a47 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 20 Mar 2026 18:04:40 -0700 Subject: [WARP] Sanitize server URLs --- plugins/warp/src/container/network/client.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/warp/src/container/network/client.rs b/plugins/warp/src/container/network/client.rs index 3d0af057..ad31b0e5 100644 --- a/plugins/warp/src/container/network/client.rs +++ b/plugins/warp/src/container/network/client.rs @@ -46,7 +46,11 @@ impl NetworkClient { Self { provider, headers, - server_url, + // We place the '/' already in the materialized URLs we query, so strip it here. + server_url: server_url + .strip_suffix('/') + .unwrap_or(&server_url) + .to_string(), } } -- cgit v1.3.1