mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 22:42:23 +01:00
is this what purgatory feels like
This commit is contained in:
parent
86c60bda15
commit
9a2e22fd41
1 changed files with 3 additions and 3 deletions
|
@ -217,14 +217,14 @@ class MatrixFederationHttpClient(object):
|
|||
"""
|
||||
response = yield self._send_request(**send_request_args)
|
||||
|
||||
if not try_trailing_slash_on_400:
|
||||
defer.returnValue(response)
|
||||
|
||||
# Check if it's necessary to retry with a trailing slash
|
||||
body = yield _handle_json_response(
|
||||
self.hs.get_reactor(), self.default_timeout, request, response,
|
||||
)
|
||||
|
||||
if not try_trailing_slash_on_400:
|
||||
defer.returnValue(body)
|
||||
|
||||
# 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.2.
|
||||
|
|
Loading…
Reference in a new issue