Skip to content

Commit 47caf0b

Browse files
author
Luca Forstner
committed
Fix url to include query params
1 parent 97f8aad commit 47caf0b

File tree

1 file changed

+2
-2
lines changed
  • packages/node/src/transports

1 file changed

+2
-2
lines changed

packages/node/src/transports/new.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function createRequestExecutor(
9898
httpModule: HTTPModule,
9999
agent: http.Agent,
100100
): TransportRequestExecutor {
101-
const { hostname, pathname, port, protocol } = new URL(options.url);
101+
const { hostname, pathname, port, protocol, search } = new URL(options.url);
102102

103103
return function makeRequest(request: TransportRequest): Promise<TransportMakeRequestResponse> {
104104
return new Promise((resolve, reject) => {
@@ -108,7 +108,7 @@ function createRequestExecutor(
108108
agent,
109109
headers: options.headers,
110110
hostname,
111-
path: `${pathname}`,
111+
path: `${pathname}${search}`,
112112
port,
113113
protocol,
114114
ca: options.caCerts,

0 commit comments

Comments
 (0)