From 6d7d2b8264e9982bbbc9cc48f681c01455c67997 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Thu, 17 Jul 2025 00:43:46 +0200 Subject: [PATCH] Matrix token call should send JSON Makes curl send the Content-Type header as application/json to avoid an M_NOT_JSON response code. --- src/components/notifications/Matrix.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notifications/Matrix.vue b/src/components/notifications/Matrix.vue index 60d43cf17..49c51f9e4 100644 --- a/src/components/notifications/Matrix.vue +++ b/src/components/notifications/Matrix.vue @@ -18,7 +18,7 @@ {{ $t("matrixDesc1") }}

- curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/v3/login". + curl -XPOST --json '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/v3/login".