From c055b4e328d490bee862416ea9d7e9c09188cab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Zugmeyer?= Date: Fri, 5 Nov 2021 17:48:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[RUMF-1062]=20fix=20support=20fo?= =?UTF-8?q?r=20Safari=2011.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rum/src/transport/send.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)