serialise objects to json before node-fetch

This commit is contained in:
sachaaaaa 2019-02-18 13:17:58 +11:00
parent 8eac72b60c
commit d3f23db049

View file

@ -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 {