Skip to content

Commit fe7973a

Browse files
author
Luca Forstner
committed
bytelength
1 parent c60142d commit fe7973a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function patchRequestToCaptureBody(req: IncomingMessage, isolationScope: Scope):
389389

390390
if (bodyByteLength < MAX_BODY_BYTE_LENGTH) {
391391
chunks.push(bufferifiedChunk);
392-
bodyByteLength += bufferifiedChunk.length;
392+
bodyByteLength += bufferifiedChunk.byteLength;
393393
} else if (DEBUG_BUILD) {
394394
logger.log(
395395
INSTRUMENTATION_NAME,

0 commit comments

Comments
 (0)