-
- Downloads
Remove trailing slashes from outbound federation requests and retry on 400 (#4840)
As per #3622, we remove trailing slashes from outbound federation requests. However, to ensure that we remain backwards compatible with previous versions of Synapse, if we receive a HTTP 400 with `M_UNRECOGNIZED`, then we are likely talking to an older version of Synapse in which case we retry with a trailing slash appended to the request path.
Showing
- changelog.d/4840.feature 1 addition, 0 deletionschangelog.d/4840.feature
- synapse/federation/transport/client.py 14 additions, 7 deletionssynapse/federation/transport/client.py
- synapse/http/matrixfederationclient.py 75 additions, 10 deletionssynapse/http/matrixfederationclient.py
- tests/handlers/test_typing.py 2 additions, 0 deletionstests/handlers/test_typing.py
- tests/http/test_fedclient.py 99 additions, 0 deletionstests/http/test_fedclient.py
Loading
Please register or sign in to comment