diff --git a/src/matrix/helpers.ts b/src/matrix/helpers.ts index 6c8914a..0e78c1b 100644 --- a/src/matrix/helpers.ts +++ b/src/matrix/helpers.ts @@ -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) => {