mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 11:49:21 -05:00
Just return if not doing any trailing slash shennanigans
This commit is contained in:
parent
94cb7939e4
commit
551ea11559
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user