summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-10-02 11:49:39 +0100
committerErik Johnston <erik@matrix.org>2018-10-02 12:06:22 +0100
commit334e075dd85a21e859eb89948b606c2710b932ad (patch)
tree07334381e980976aedb0a49e48f1f1c71f124c3f /synapse/events
parentMerge pull request #3989 from matrix-org/rav/better_stacktraces (diff)
downloadsynapse-334e075dd85a21e859eb89948b606c2710b932ad.tar.xz
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.
Diffstat (limited to 'synapse/events')
0 files changed, 0 insertions, 0 deletions