From 8b3926fd5de8c2004ffa4f8b34042ad9390eef3c Mon Sep 17 00:00:00 2001 From: Alireza <5110480+silverbios@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:32:30 +0330 Subject: [PATCH] Update notify_matrix.sh Change the HTTP method from PUT to POST because in recent versions, only POST allowed from synapse server. --- notify_matrix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify_matrix.sh b/notify_matrix.sh index b000db8..4c98456 100644 --- a/notify_matrix.sh +++ b/notify_matrix.sh @@ -23,6 +23,6 @@ send_notification() { # URL Example: https://matrix.org/_matrix/client/r0/rooms/!xxxxxx:example.com/send/m.room.message?access_token=xxxxxxxx - curl -sS -o /dev/null --fail -X PUT "$MatrixServer/_matrix/client/r0/rooms/$Room_id/send/m.room.message?access_token=$AccessToken" -H 'Content-Type: application/json' -d "$MsgBody" + curl -sS -o /dev/null --fail -X POST "$MatrixServer/_matrix/client/r0/rooms/$Room_id/send/m.room.message?access_token=$AccessToken" -H 'Content-Type: application/json' -d "$MsgBody" }