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

Just return if not doing any trailing slash shennanigans

parent 94cb7939
No related branches found
No related tags found
No related merge requests found
...@@ -226,6 +226,8 @@ class MatrixFederationHttpClient(object): ...@@ -226,6 +226,8 @@ class MatrixFederationHttpClient(object):
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,
) )
defer.returnValue(body)
except HttpResponseException as e: except HttpResponseException as e:
if not try_trailing_slash_on_400: if not try_trailing_slash_on_400:
# Received an error >= 300. Raise unless we're retrying # Received an error >= 300. Raise unless we're retrying
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment