Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 42d8710

Browse files
authored
Fix a spec compliance issue where requests to the /publicRooms federation API would specify limit as a string. (#12364)
1 parent 708d88b commit 42d8710

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/12364.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string.

synapse/federation/transport/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ async def get_public_rooms(
481481
if third_party_instance_id:
482482
data["third_party_instance_id"] = third_party_instance_id
483483
if limit:
484-
data["limit"] = str(limit)
484+
data["limit"] = limit
485485
if since_token:
486486
data["since"] = since_token
487487

@@ -509,7 +509,7 @@ async def get_public_rooms(
509509
if third_party_instance_id:
510510
args["third_party_instance_id"] = (third_party_instance_id,)
511511
if limit:
512-
args["limit"] = [str(limit)]
512+
args["limit"] = [limit]
513513
if since_token:
514514
args["since"] = [since_token]
515515

0 commit comments

Comments
 (0)