Make federation endpoints more tolerant of trailing slashes for some endpoints (#4793)

Server side of a solution towards #3622.
This commit is contained in:
Andrew Morgan 2019-03-11 17:44:03 +00:00 committed by GitHub
parent 9c0e6e8e7c
commit 290552fd83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 11 deletions

View file

@ -167,7 +167,7 @@ class TransportLayerClient(object):
# generated by the json_data_callback.
json_data = transaction.get_dict()
path = _create_v1_path("/send/%s/", transaction.transaction_id)
path = _create_v1_path("/send/%s", transaction.transaction_id)
response = yield self.client.put_json(
transaction.destination,