mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-07-01 00:31:23 +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,
|
||||
};
|
||||
} else {
|
||||
requestOptions["json"] = body;
|
||||
requestOptions["json"] = true;
|
||||
requestOptions["body"] = body;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user