From 920028207040f69da9a3fd2dfc1159662ef16c5b Mon Sep 17 00:00:00 2001 From: Vinicius Becker Date: Fri, 17 Apr 2026 10:58:53 -0300 Subject: [PATCH] Update README.md Fix README documentation about Matrix Notifications, adding a `application/json` header. Without it, the request returns this error: `{"errcode":"M_NOT_JSON","error":"Invalid Content-Type header: expected application/json"}` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5feda89..1698e34 100644 --- a/README.md +++ b/README.md @@ -768,7 +768,7 @@ See more details in the base image listed above for more mail environment variab Fetch a `MATRIX_ACCESS_TOKEN`: ```` -curl -XPOST -d '{"type":"m.login.password", "user":"myuserid", "password":"mypass"}' "https://matrix.org/_matrix/client/r0/login" +curl -XPOST -H 'Content-Type: application/json' -d '{"type":"m.login.password", "user":"myuserid", "password":"mypass"}' "https://matrix.org/_matrix/client/r0/login" ```` Copy the JSON response `access_token` that will look something like this: