Remove additional slash in the end of the proxy base url
This commit is contained in:
parent
03edbb01ce
commit
66e247b274
1 changed files with 3 additions and 1 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue