Merge pull request #500 from sebastian93921/sebastian/patch-remove-addition-slash
Fix: Remove addition slash for check proxy health
This commit is contained in:
commit
13014a0471
1 changed files with 2 additions and 1 deletions
|
|
@ -14,8 +14,9 @@ const getSearchParam = (key: string): string | null => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getMCPProxyAddress = (config: InspectorConfig): string => {
|
export const getMCPProxyAddress = (config: InspectorConfig): string => {
|
||||||
const proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
|
let proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;
|
||||||
if (proxyFullAddress) {
|
if (proxyFullAddress) {
|
||||||
|
proxyFullAddress = proxyFullAddress.replace(/\/+$/, "");
|
||||||
return proxyFullAddress;
|
return proxyFullAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue