From fc1d2462a4f976e4fce1ca811fe69365a03192a4 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Tue, 31 Oct 2023 13:07:15 +0100 Subject: [PATCH] Add eol --- packages/realm-app-importer/src/AdminApiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/realm-app-importer/src/AdminApiClient.ts b/packages/realm-app-importer/src/AdminApiClient.ts index fb67e1a5e1..2d4dc94a5b 100644 --- a/packages/realm-app-importer/src/AdminApiClient.ts +++ b/packages/realm-app-importer/src/AdminApiClient.ts @@ -382,7 +382,7 @@ export class AdminApiClient { console.log("FISK 111", { ...rest, body: JSON.stringify(body), headers, reactNative: { textStreaming: true } }); const response = await DefaultNetworkTransport.fetch(url, { ...rest, - body: JSON.stringify(body), + body: JSON.stringify(body + "\n"), headers, // Setting additional options to signal to the RN fetch polyfill that it shouldn't consider the response a "blob" // see https://github.com/react-native-community/fetch/issues/15