forked-synapse/synapse/http
Erik Johnston 334e075dd8 Fix error when logging incomplete requests
If a connection is lost before a request is read from Request, Twisted
sets `method` (and `uri`) attributes to dummy values. These dummy values
have incorrect types (i.e. they're not bytes), and so things like
`__repr__` would raise an exception.

To fix this we had a helper method to return the method with a
consistent type.
2018-10-02 12:06:22 +01:00
..
__init__.py redact better 2018-09-14 03:45:34 +10:00
additional_resource.py run isort 2018-07-09 16:09:20 +10:00
client.py Update to use new timeout function everywhere. 2018-09-19 10:39:40 +01:00
endpoint.py Set SNI to the server_name, not whatever was in the SRV record 2018-09-18 17:01:12 +01:00
matrixfederationclient.py Update to use new timeout function everywhere. 2018-09-19 10:39:40 +01:00
request_metrics.py Fix more b'abcd' noise in metrics 2018-09-17 17:16:50 +01:00
server.py Fix spurious exceptions when client closes conncetion 2018-09-20 13:44:20 +01:00
servlet.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
site.py Fix error when logging incomplete requests 2018-10-02 12:06:22 +01:00