failure to download svg files
- Gajim 1.7.2 gajim-nightly
- python-nbxmpp Version: 4.2.1
Description
Gajim does not preview svg files.
Steps to reproduce
- turn on file previews
- post a link to a svg file in a muc, such as https://upload.wikimedia.org/wikipedia/commons/3/3f/Wikipedia_svg_logo-ca.svg
What happens
No preview is shown.
From the debug log:
03/26/2023 05:30:10 (I) nbxmpp.http | Request(): Sniffed: content-type: image/svg+xml, content-length: 56669
03/26/2023 05:30:10 (I) nbxmpp.http | Request(): Request response received
03/26/2023 05:30:10 (I) nbxmpp.http | Request(): Start downloading response body
03/26/2023 05:30:10 (D) gajim.gtk.conversation_view| emit autoscroll-changed, (True,)
03/26/2023 05:30:10 (I) nbxmpp.http | Request(): Finished reading
03/26/2023 05:30:10 (I) nbxmpp.http | Request(): Set Failed: HTTPRequestError.CONTENT_OVERFLOW
03/26/2023 05:30:11 (W) gajim.c.preview | Download failed: https://upload.wikimedia.org/wikipedia/commons/3/3f/Wikipedia_svg_logo-ca.svg - <HTTPRequestError.CONTENT_OVERFLOW: 4>
03/26/2023 05:30:11 (I) nbxmpp.http | Request(): Run cleanup