summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-04-28 16:39:08 +0100
committerSean Quah <seanq@element.io>2022-04-28 19:28:00 +0100
commit3544cfdaa192831cc59684abd5618d7748bd6f1f (patch)
tree9be41b9ce6e693666cb246093eca5529072aef9d
parentTest the `@cancellable` flag on `ReplicationEndpoint._handle_request` (diff)
downloadsynapse-3544cfdaa192831cc59684abd5618d7748bd6f1f.tar.xz
Fix `make_signed_federation_request` turning empty dicts into `b""`
Signed-off-by: Sean Quah <seanq@element.io>
-rw-r--r--tests/unittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index 9afa68c164..e7f255b4fa 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -831,7 +831,7 @@ class FederatingHomeserverTestCase(HomeserverTestCase):
             self.site,
             method=method,
             path=path,
-            content=content or "",
+            content=content if content is not None else "",
             shorthand=False,
             await_result=await_result,
             custom_headers=custom_headers,