mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Persistency improvements
This commit is contained in:
parent
859fcad6a6
commit
9e92b87495
@ -74,7 +74,8 @@ class RESTPersistenceManager extends PersistenceManager {
|
||||
`${this.documentUrl.replace('{id}', mapId)}?${query}`,
|
||||
{
|
||||
method: 'PUT',
|
||||
body: JSON.stringify(data),
|
||||
// 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,
|
||||
},
|
||||
@ -135,7 +136,7 @@ class RESTPersistenceManager extends PersistenceManager {
|
||||
fetch(
|
||||
this.lockUrl.replace('{id}', mapId),
|
||||
{
|
||||
method: 'POST',
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'text/plain' },
|
||||
body: 'false',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user