Skip to content
Snippets Groups Projects
Commit 9a2e22fd authored by Andrew Morgan's avatar Andrew Morgan
Browse files

is this what purgatory feels like

parent 86c60bda
No related branches found
No related tags found
No related merge requests found
...@@ -217,14 +217,14 @@ class MatrixFederationHttpClient(object): ...@@ -217,14 +217,14 @@ class MatrixFederationHttpClient(object):
""" """
response = yield self._send_request(**send_request_args) 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 # Check if it's necessary to retry with a trailing slash
body = yield _handle_json_response( body = yield _handle_json_response(
self.hs.get_reactor(), self.default_timeout, request, 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 # Retry with a trailing slash if we received a 400 with
# 'M_UNRECOGNIZED' which some endpoints can return when omitting a # 'M_UNRECOGNIZED' which some endpoints can return when omitting a
# trailing slash on Synapse <=v0.99.2. # trailing slash on Synapse <=v0.99.2.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment