Skip to content

Commit 7d2a5af

Browse files
authored
Fix http-api butchering idServer requests (#2134)
1 parent 02ba233 commit 7d2a5af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http-api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ export class MatrixHttpApi {
508508
if (method === Method.Get) {
509509
opts.qs = params;
510510
} else if (typeof params === "object") {
511-
opts.json = !!params; // XXX: this feels strange
511+
opts.json = params;
512512
}
513513

514514
if (accessToken) {

0 commit comments

Comments
 (0)