#3440: charset should be ignored for application/x-bittorrent
----------------------------+-------------------
 Reporter:  megaksa         |       Type:  bug
   Status:  new             |   Priority:  major
Milestone:  needs verified  |  Component:  Core
  Version:  master          |   Keywords:
----------------------------+-------------------
 deluge version: 2.0.4.dev38 on Arch Linux.

 I'm used to use delugesiphon Chrome plugin to add new torrents to server.
 However after switching to Arch which has latest deluge, the plugin
 doesn't work anymore for rutracker.org. After the investigation I've found
 the issue to be deluge itself. httpdownloader. When requesting torrent
 download rutracker responds with the header:
 `Content-Type: application/x-bittorrent; charset=Windows-1251`

 While providing charset for this content type IMO doesn't make sense, I
 suggest to not do re-encoding to UTF-8 for anything besides 'text/...'
 MIME types.

 Attached is a suggested fix produced by
 `diff /usr/lib/python3.8/site-packages/deluge/httpdownloader.py
 /usr/lib/python3.8/site-packages/deluge/httpdownloader_fixed.py`

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3440>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/046.917097401ae82566b70ec65b80c707d0%40deluge-torrent.org.

Reply via email to