diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-03-26 11:35:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-26 11:35:29 +0000 |
commit | 4a125be13815548762f0d4cf63e7913a09314197 (patch) | |
tree | e6cdbecdf8cd54be9836a7ad453a503032584ebd /synapse/http | |
parent | Fix ClientReplicationStreamProtocol.__str__ (#4929) (diff) | |
download | synapse-4a125be13815548762f0d4cf63e7913a09314197.tar.xz |
Make federation endpoints more tolerant of trailing slashes v2 (#4935)
Redo of https://github.com/matrix-org/synapse/pull/4840
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index 8e855d13d6..ff63d0b2a8 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -231,6 +231,7 @@ class MatrixFederationHttpClient(object): # Retry with a trailing slash if we received a 400 with # 'M_UNRECOGNIZED' which some endpoints can return when omitting a # trailing slash on Synapse <= v0.99.3. + logger.info("Retrying request with trailing slash") request.path += "/" response = yield self._send_request( |