diff options
author | Erik Johnston <erik@matrix.org> | 2018-10-02 11:49:39 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-10-02 12:06:22 +0100 |
commit | 334e075dd85a21e859eb89948b606c2710b932ad (patch) | |
tree | 07334381e980976aedb0a49e48f1f1c71f124c3f /synapse/push/baserules.py | |
parent | Merge pull request #3989 from matrix-org/rav/better_stacktraces (diff) | |
download | synapse-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 '')
0 files changed, 0 insertions, 0 deletions