mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
serialise objects to json before node-fetch
This commit is contained in:
parent
8eac72b60c
commit
d3f23db049
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ class LokiMessageAPI {
|
|||
};
|
||||
const fetchOptions = {
|
||||
method: 'POST',
|
||||
body,
|
||||
body: JSON.stringify(body),
|
||||
headers: {
|
||||
'X-Loki-EphemKey': 'not implemented yet',
|
||||
},
|
||||
|
@ -228,7 +228,7 @@ class LokiMessageAPI {
|
|||
};
|
||||
const fetchOptions = {
|
||||
method: 'POST',
|
||||
body,
|
||||
body: JSON.stringify(body),
|
||||
headers,
|
||||
};
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue