We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e01bd commit af0733fCopy full SHA for af0733f
packages/node-core/src/integrations/http/httpServerSpansIntegration.ts
@@ -344,7 +344,7 @@ function getContentLength(headers: IncomingHttpHeaders): number | null {
344
const contentLengthHeader = headers['content-length'];
345
if (contentLengthHeader === undefined) return null;
346
347
- const contentLength = parseInt(contentLengthHeader as string, 10);
+ const contentLength = parseInt(contentLengthHeader, 10);
348
if (isNaN(contentLength)) return null;
349
350
return contentLength;
0 commit comments