synapse-product/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 copyrights 2016-01-07 04:26:29 +00:00
additional_resource.py Add a hook for custom rest endpoints 2017-11-02 14:36:55 +00:00
client.py Merge pull request #2586 from matrix-org/rav/frontend_proxy_auth_header 2017-10-27 11:01:50 +01:00
endpoint.py Handle SERVFAILs when doing AAAA lookups for federation (#2477) 2017-09-28 15:24:00 +01:00
matrixfederationclient.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
server.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
servlet.py Fix 500 on invalid utf-8 in request 2017-11-10 09:15:39 +00:00
site.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00