Always send application/json as content type in rpc.

pull/289/head
Mikunj 6 years ago
parent bc6586e5ce
commit 147861790b

@ -106,7 +106,10 @@ const rpc = (address, port, method, params, options = {}) => {
method: 'POST',
...options,
body: JSON.stringify(body),
headers,
headers: {
'Content-Type': 'application/json',
...headers,
},
};
return fetch(url, fetchOptions);

Loading…
Cancel
Save