Skip to content

Commit 28e6dfe

Browse files
mydealforst
andcommitted
Update packages/node/src/integrations/http/SentryHttpInstrumentation.ts
Co-authored-by: Luca Forstner <[email protected]>
1 parent 3e27265 commit 28e6dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function extractQueryParams(req: IncomingMessage): string | undefined {
457457
}
458458

459459
function headersToDict(reqHeaders: Record<string, string | string[] | undefined>): Record<string, string> {
460-
const headers: Record<string, string> = {};
460+
const headers: Record<string, string> = Object.create(null);
461461

462462
try {
463463
Object.entries(reqHeaders).forEach(([key, value]) => {

0 commit comments

Comments
 (0)