matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
188 stars 94 forks source link

`/logout` does not take a request body, which is inconsistent #1845

Open reivilibre opened 3 months ago

reivilibre commented 3 months ago

Other PUT and POST requests except for media upload take a JSON request body, even if that's just {}.

For some reason /logout is an exception to this, although it's not clear why or whether this is just an accident.

Area: https://spec.matrix.org/v1.8/client-server-api/#post_matrixclientv3logout

richvdh commented 3 months ago

I think it's an accident. The original synapse impl just didn't check if there was a body, and then clients started relying on that.