Opened 10 months ago

Last modified 10 months ago

#3649 new bug

wrong content-type for upload file

Reported by: Xuefer Owned by:
Priority: minor Milestone: needs verified
Component: Unknown Version: 2.0.5
Keywords: Cc:

Description

  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

Attachments (1)

content-type.diff (744 bytes ) - added by Xuefer 10 months ago.

Download all attachments as: .zip

Change History (2)

by Xuefer, 10 months ago

Attachment: content-type.diff added

comment:1 by Xuefer, 10 months ago

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

Note: See TracTickets for help on using tickets.