Remove additional slash in the end of the proxy base url

This commit is contained in:
Sebastian Ko 2025-06-10 12:17:12 -04:00 • committed by GitHub
commit 66e247b274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,7 +241,9 @@ export function useConnection({
const checkProxyHealth = async () => {
try {
const proxyHealthUrl = new URL(`${getMCPProxyAddress(config)}/health`);
const proxyBaseUrl = getMCPProxyAddress(config).replace(/\/+$/, '');
const proxyHealthUrl = new URL(`${proxyBaseUrl}/health`);
const proxyHealthResponse = await fetch(proxyHealthUrl);
const proxyHealth = await proxyHealthResponse.json();
if (proxyHealth?.status !== "ok") {