mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-02-07 14:45:18 -05:00
![Erik Johnston](/assets/img/avatar_default.png)
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.