Skip to content

Commit f166ea0

Browse files
author
Luca Forstner
committed
Import url to fix older node versions
1 parent a159aaa commit f166ea0

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

packages/node/src/transports/new.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
import { eventStatusFromHttpCode } from '@sentry/utils';
1010
import * as http from 'http';
1111
import * as https from 'https';
12+
import { URL } from 'url';
1213

1314
import { HTTPModule } from './base/http-module';
1415

@@ -107,7 +108,7 @@ function createRequestExecutor(
107108
agent,
108109
headers: options.headers,
109110
hostname,
110-
pathname,
111+
path: `${pathname}`,
111112
port,
112113
protocol,
113114
ca: options.caCerts,

0 commit comments

Comments
 (0)