diff --git a/packages/http-client/src/proxy.ts b/packages/http-client/src/proxy.ts index 78b1dbfe..32afce6a 100644 --- a/packages/http-client/src/proxy.ts +++ b/packages/http-client/src/proxy.ts @@ -18,7 +18,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined { return new URL(proxyVar) } catch { if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new URL('http://' + proxyVar) + return new URL(`http://${proxyVar}`) } } else { return undefined