This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
synapse
mirror of
https://github.com/matrix-org/synapse.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
671
Wiki
Activity
Browse Source
fix dict handling for make_request()
tags/v1.24.0rc1
Richard van der Hoff
3 years ago
parent
9debe657a3
commit
70c0d47989
2 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
tests/server.py
+0
-3
tests/unittest.py
+ 2
- 0
tests/server.py
View File
@@ -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")
+ 0
- 3
tests/unittest.py
View File
@@ -429,9 +429,6 @@ class HomeserverTestCase(TestCase):
Returns:
Tuple[synapse.http.site.SynapseRequest, channel]
"""
if isinstance(content, dict):
content = json.dumps(content).encode("utf8")
return make_request(
self.reactor,
self.site,
Write
Preview
Loading…
Cancel
Save