Skip to content

Commit

Permalink
revert no longer needed change
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev authored and Stephen Belanger committed May 28, 2024
1 parent 1c7ccfa commit 6f4e616
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/dd-trace/src/exporters/common/form-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
const { Readable } = require('stream')
const id = require('../../id')

const TRAILER_SIZE = 22

class FormData extends Readable {
constructor () {
super()
Expand All @@ -24,7 +22,7 @@ class FormData extends Readable {
}

size () {
return this._data.reduce((size, chunk) => size + Buffer.byteLength(chunk), TRAILER_SIZE)
return this._data.reduce((size, chunk) => size + chunk.length, 0)
}

getHeaders () {
Expand Down

0 comments on commit 6f4e616

Please sign in to comment.