ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Use empty JSON object as the default response #183

Closed mujx closed 7 years ago

mujx commented 7 years ago

Currently we return an empty response from endpoints like presence etc. For example, Riot throws an error on this endpoint, because it fails to parse the empty response as JSON and as a result the UI blocks.

Maybe we could use an Empty { } struct for this?