Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string. (#12364)
parent
708d88b1a2
commit
42d8710f38
|
@ -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