diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-11-08 01:37:43 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 01:37:43 +1100 |
commit | b3708830b847245a5d559a099fcaf738250b7cbe (patch) | |
tree | ab80ed9ed77afe01b04958d0b9b6f3ba94a087f9 /tests/server.py | |
parent | Merge pull request #4155 from rubo77/purge-api (diff) | |
download | synapse-b3708830b847245a5d559a099fcaf738250b7cbe.tar.xz |
Fix URL preview bugs (type error when loading cache from db, content-type including quotes) (#4157)
Diffstat (limited to '')
-rw-r--r-- | tests/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server.py b/tests/server.py index 984cfe26d4..7919a1f124 100644 --- a/tests/server.py +++ b/tests/server.py @@ -57,6 +57,8 @@ class FakeChannel(object): self.result["headers"] = headers def write(self, content): + assert isinstance(content, bytes), "Should be bytes! " + repr(content) + if "body" not in self.result: self.result["body"] = b"" |