Skip to content

Commit 272043d

Browse files
deammerkamilogorek
andauthored
fix(node): Check for potentially undefined httpModule (#4037)
Co-authored-by: Kamil Ogórek <[email protected]>
1 parent cff6f9a commit 272043d

File tree

1 file changed

+1
-1
lines changed
  • packages/node/src/integrations/utils

1 file changed

+1
-1
lines changed

packages/node/src/integrations/utils/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export function normalizeRequestArgs(
154154
requestOptions.protocol =
155155
(requestOptions.agent as any)?.protocol ||
156156
(requestOptions._defaultAgent as any)?.protocol ||
157-
(httpModule.globalAgent as any)?.protocol;
157+
(httpModule?.globalAgent as any)?.protocol;
158158
/* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */
159159
}
160160

0 commit comments

Comments
 (0)