synapse-old/synapse/http
Richard van der Hoff f90649eb2b Fix 500 on invalid utf-8 in request
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.
2017-11-10 09:15:39 +00:00
..
__init__.py
additional_resource.py Add a hook for custom rest endpoints 2017-11-02 14:36:55 +00:00
client.py
endpoint.py
matrixfederationclient.py
server.py
servlet.py Fix 500 on invalid utf-8 in request 2017-11-10 09:15:39 +00:00
site.py