mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 12:52:04 +00:00
Fix a spec compliance issue where requests to the /publicRooms
federation API would specify limit
as a string. (#12364)
This commit is contained in:
parent
708d88b1a2
commit
42d8710f38
1
changelog.d/12364.bugfix
Normal file
1
changelog.d/12364.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string.
|
@ -481,7 +481,7 @@ class TransportLayerClient:
|
|||||||
if third_party_instance_id:
|
if third_party_instance_id:
|
||||||
data["third_party_instance_id"] = third_party_instance_id
|
data["third_party_instance_id"] = third_party_instance_id
|
||||||
if limit:
|
if limit:
|
||||||
data["limit"] = str(limit)
|
data["limit"] = limit
|
||||||
if since_token:
|
if since_token:
|
||||||
data["since"] = since_token
|
data["since"] = since_token
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ class TransportLayerClient:
|
|||||||
if third_party_instance_id:
|
if third_party_instance_id:
|
||||||
args["third_party_instance_id"] = (third_party_instance_id,)
|
args["third_party_instance_id"] = (third_party_instance_id,)
|
||||||
if limit:
|
if limit:
|
||||||
args["limit"] = [str(limit)]
|
args["limit"] = [limit]
|
||||||
if since_token:
|
if since_token:
|
||||||
args["since"] = [since_token]
|
args["since"] = [since_token]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user