diff --git a/packages/rum/src/transport/send.ts b/packages/rum/src/transport/send.ts index b1338be57d..ef4235a42e 100644 --- a/packages/rum/src/transport/send.ts +++ b/packages/rum/src/transport/send.ts @@ -12,7 +12,7 @@ export function send( ): void { const formData = new FormData() - formData.set( + formData.append( 'segment', new Blob([data], { type: 'application/octet-stream', @@ -20,8 +20,8 @@ export function send( `${meta.session.id}-${meta.start}` ) - toFormEntries(meta, (key, value) => formData.set(key, value)) - formData.set('raw_segment_size', rawSegmentSize.toString()) + toFormEntries(meta, (key, value) => formData.append(key, value)) + formData.append('raw_segment_size', rawSegmentSize.toString()) const request = new HttpRequest(endpointBuilder, SEND_BEACON_BYTE_LENGTH_LIMIT) request.send(formData, data.byteLength, flushReason)