summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-03-20 18:04:40 -0700
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-03-24 18:46:48 -0700
commit7a4114bae3009c0b52fe2490b08db14463a39a47 (patch)
tree4a8ac23cf9ddcf68fa21e2adc06df042bd52ad90 /plugins
parentc3963ad6b9720cfeca48caf3338ba58e86cf4d34 (diff)
[WARP] Sanitize server URLs
Diffstat (limited to 'plugins')
-rw-r--r--plugins/warp/src/container/network/client.rs6
1 files changed, 5 insertions, 1 deletions
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(),
}
}