MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / deleteHttpHeader

Function deleteHttpHeader

frontend/src/tools/protocol.ts:110–117  ·  view source on GitHub ↗
(addr: string)

Source from the content-addressed store, hash-verified

108}
109
110export function deleteHttpHeader(addr: string) {
111 if (addr.toLocaleLowerCase().indexOf("http://") === 0) {
112 return `${addr.slice(7)}`;
113 } else if (addr.toLocaleLowerCase().indexOf("https://") === 0) {
114 return `${addr.slice(8)}`;
115 }
116 return addr;
117}
118
119// The ws address on the Daemon side is converted to the local ws address
120export function daemonWsAddressToWs(wsAddr = "") {

Callers 1

parseForwardAddressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected