mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:24:50 -04:00
fix dict handling for make_request()
This commit is contained in:
parent
9debe657a3
commit
70c0d47989
2 changed files with 2 additions and 3 deletions
|
@ -193,6 +193,8 @@ def make_request(
|
|||
if not path.startswith(b"/"):
|
||||
path = b"/" + path
|
||||
|
||||
if isinstance(content, dict):
|
||||
content = json.dumps(content).encode("utf8")
|
||||
if isinstance(content, str):
|
||||
content = content.encode("utf8")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue