0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-13 08:08:57 +02:00

Fix replication for room v3 (#4523)

* Fix replication for room v3

We were not correctly quoting the path fragments over http replication,
which meant that it exploded when the event IDs had a slash in them

* Newsfile
This commit is contained in:
Erik Johnston 2019-01-30 14:19:52 +00:00 committed by Amber Brown
parent 7615a8ced1
commit a4f52a33fe
2 changed files with 5 additions and 1 deletions

1
changelog.d/4523.feature Normal file
View file

@ -0,0 +1 @@
Add support for room version 3

View file

@ -127,7 +127,10 @@ class ReplicationEndpoint(object):
def send_request(**kwargs):
data = yield cls._serialize_payload(**kwargs)
url_args = [urllib.parse.quote(kwargs[name]) for name in cls.PATH_ARGS]
url_args = [
urllib.parse.quote(kwargs[name], safe='')
for name in cls.PATH_ARGS
]
if cls.CACHE:
txn_id = random_string(10)