MatrixSynapse/synapse
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
..
api
app
appservice
config
crypto
events
federation
groups
handlers
http Fix 500 on invalid utf-8 in request 2017-11-10 09:15:39 +00:00
metrics
module_api
push
replication
rest
static/client
storage
streams
util
__init__.py
event_auth.py
notifier.py
python_dependencies.py
server.py
server.pyi
state.py
types.py
visibility.py