From 72018cf6b09fb4d19aa6a37533f6794e6eddaf8e Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 18 Feb 2022 14:06:33 -0800 Subject: [PATCH] Fix saving big payloads. --- packages/mindplot/src/components/RestPersistenceManager.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/mindplot/src/components/RestPersistenceManager.ts b/packages/mindplot/src/components/RestPersistenceManager.ts index 2dbb67a1..7eb076a9 100644 --- a/packages/mindplot/src/components/RestPersistenceManager.ts +++ b/packages/mindplot/src/components/RestPersistenceManager.ts @@ -77,7 +77,6 @@ class RESTPersistenceManager extends PersistenceManager { // Blob helps to resuce the memory on large payload. body: new Blob([JSON.stringify(data)], { type: 'text/plain' }), headers: { 'Content-Type': 'application/json; charset=utf-8', Accept: 'application/json' }, - keepalive: true, }, ).then(async (response: Response) => { if (response.ok) { @@ -129,7 +128,6 @@ class RESTPersistenceManager extends PersistenceManager { { method: 'POST', headers: { 'Content-Type': 'application/json; charset=utf-8', Accept: 'application/json' }, - keepalive: true, }); }