Skip to content

Commit 66e247b

Browse files
Remove additional slash in the end of the proxy base url
1 parent 03edbb0 commit 66e247b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/lib/hooks/useConnection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export function useConnection({
241241

242242
const checkProxyHealth = async () => {
243243
try {
244-
const proxyHealthUrl = new URL(`${getMCPProxyAddress(config)}/health`);
244+
const proxyBaseUrl = getMCPProxyAddress(config).replace(/\/+$/, '');
245+
const proxyHealthUrl = new URL(`${proxyBaseUrl}/health`);
246+
245247
const proxyHealthResponse = await fetch(proxyHealthUrl);
246248
const proxyHealth = await proxyHealthResponse.json();
247249
if (proxyHealth?.status !== "ok") {

0 commit comments

Comments
 (0)