mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 01:04:49 -04:00
Fix URL preview bugs (type error when loading cache from db, content-type including quotes) (#4157)
This commit is contained in:
parent
c8ba79327b
commit
b3708830b8
5 changed files with 187 additions and 10 deletions
|
@ -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""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue