mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Make federation endpoints more tolerant of trailing slashes v2 (#4935)
Redo of https://github.com/matrix-org/synapse/pull/4840
This commit is contained in:
parent
8cbbedaa2b
commit
4a125be138
5 changed files with 13 additions and 11 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue