mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 04:05:38 +00:00
![]() If somebody sends us a request where the the body is invalid utf-8, we should return a 400 rather than a 500. (json.loads throws a UnicodeError in this situation) We might as well catch all Exceptions here: it seems very unlikely that we would get a request that *isn't caused by invalid json. |
||
---|---|---|
.. | ||
__init__.py | ||
additional_resource.py | ||
client.py | ||
endpoint.py | ||
matrixfederationclient.py | ||
server.py | ||
servlet.py | ||
site.py |