diff --git a/packages/connect-node/src/node-universal-client.ts b/packages/connect-node/src/node-universal-client.ts index 0902de6a7..10a64631d 100644 --- a/packages/connect-node/src/node-universal-client.ts +++ b/packages/connect-node/src/node-universal-client.ts @@ -280,7 +280,7 @@ function h2Request( options: Omit, onStream: (stream: http2.ClientHttp2Stream) => void, ): void { - const requestUrl = new URL(url, sm.authority); + const requestUrl = new URL(url); if (requestUrl.origin !== sm.authority) { const message = `cannot make a request to ${requestUrl.origin}: the http2 session is connected to ${sm.authority}`; sentinel.reject(new ConnectError(message, Code.Internal));