[Deluge] #3649: wrong content-type for upload file

3 views
Skip to first unread message

Deluge

unread,
Jul 22, 2025, 12:10:59 PMJul 22
to delug...@googlegroups.com
#3649: wrong content-type for upload file
----------------------------+---------------------
Reporter: Xuefer | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Unknown
Version: 2.0.5 | Keywords:
----------------------------+---------------------
1. install DelugeFlow (optional)
2. press "+Add" in deluge web ui.
3. press "File"
4. select any *.torrent, press open

get json response but with content-type text/html. if DelugeFlow is
installed, get "Failed to upload torrent" error since DelugeFlow tried to
append html code to text/html while it's actually json

expected: content-type: text/javascript
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3649>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Jul 22, 2025, 12:11:59 PMJul 22
to delug...@googlegroups.com
#3649: wrong content-type for upload file
----------------------+----------------------------
Reporter: Xuefer | Owner: (none)

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Unknown | Version: 2.0.5
Resolution: | Keywords:
----------------------+----------------------------
Changes (by Xuefer):

* Attachment "content-type.diff" added.

Deluge

unread,
Jul 22, 2025, 12:48:22 PMJul 22
to delug...@googlegroups.com
#3649: wrong content-type for upload file
----------------------+----------------------------
Reporter: Xuefer | Owner: (none)
Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Unknown | Version: 2.0.5
Resolution: | Keywords:
----------------------+----------------------------
Comment (by Xuefer):

reported as https://github.com/d8ahazard/DelugeFlow/issues/4

after further investigation, according to
https://stackoverflow.com/questions/9716694/have-issue-with-response-of-
submit-in-extjs-response-in-json-but-somewhere-html (yet doc is 404), it
should be text/html instead. maybe any chrome extension should find a way
to avoid injection html under such condition
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3649#comment:1>

Reply all
Reply to author
Forward
0 new messages