Skip to content

Commit 13014a0

Browse files
authored
Merge pull request #500 from sebastian93921/sebastian/patch-remove-addition-slash
Fix: Remove addition slash for check proxy health
2 parents ff1e5ec + 1089162 commit 13014a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/utils/configUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ const getSearchParam = (key: string): string | null => {
1414
};
1515

1616
export const getMCPProxyAddress = (config: InspectorConfig): string => {
17-
const proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
17+
let proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
1818
if (proxyFullAddress) {
19+
proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
1920
return proxyFullAddress;
2021
}
2122

0 commit comments

Comments
 (0)