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
..
2017-11-09 10:06:42 +00:00
2017-11-10 09:15:39 +00:00
2017-04-05 14:15:09 +01:00
2017-11-02 14:37:39 +00:00
2017-11-09 15:49:42 +00:00
2017-11-09 15:56:16 +00:00
2017-10-24 14:15:27 +01:00