Skip to content

Commit bba6a9c

Browse files
committed
[WARP] Sanitize server URLs
1 parent b573220 commit bba6a9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/warp/src/container/network/client.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ impl NetworkClient {
4646
Self {
4747
provider,
4848
headers,
49-
server_url,
49+
// We place the '/' already in the materialized URLs we query, so strip it here.
50+
server_url: server_url
51+
.strip_suffix('/')
52+
.unwrap_or(&server_url)
53+
.to_string(),
5054
}
5155
}
5256

0 commit comments

Comments
 (0)