mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Post JSON correctly to homeserver
Fixes https://github.com/turt2live/matrix-dimension/issues/284
This commit is contained in:
parent
4f92d56026
commit
d021974a22
@ -192,7 +192,8 @@ export async function doClientApiCall(method: string, endpoint: string, query?:
|
|||||||
"Content-Type": contentType,
|
"Content-Type": contentType,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
requestOptions["json"] = body;
|
requestOptions["json"] = true;
|
||||||
|
requestOptions["body"] = body;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user