0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 22:42:23 +01:00

Just return if not doing any trailing slash shennanigans

This commit is contained in:
Andrew Morgan 2019-03-20 11:07:36 +00:00
parent 94cb7939e4
commit 551ea11559

View file

@ -226,6 +226,8 @@ class MatrixFederationHttpClient(object):
body = yield _handle_json_response(
self.hs.get_reactor(), self.default_timeout, request, response,
)
defer.returnValue(body)
except HttpResponseException as e:
if not try_trailing_slash_on_400:
# Received an error >= 300. Raise unless we're retrying