diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-01-24 08:58:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 08:58:18 -0500 |
commit | 807efd26aec9b65c6a2f02d10fd139095a5b3387 (patch) | |
tree | 86b81a5bbd5fc8fa3985c9d2a77de3ad01b24320 /tests/server.py | |
parent | Merge tag 'v1.51.0rc2' into develop (diff) | |
download | synapse-807efd26aec9b65c6a2f02d10fd139095a5b3387.tar.xz |
Support rendering previews with data: URLs in them (#11767)
Images which are data URLs will no longer break URL previews and will properly be "downloaded" and thumbnailed.
Diffstat (limited to '')
-rw-r--r-- | tests/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server.py b/tests/server.py index a0cd14ea45..82990c2eb9 100644 --- a/tests/server.py +++ b/tests/server.py @@ -313,7 +313,7 @@ def make_request( req = request(channel, site) req.content = BytesIO(content) # Twisted expects to be at the end of the content when parsing the request. - req.content.seek(SEEK_END) + req.content.seek(0, SEEK_END) if access_token: req.requestHeaders.addRawHeader( |