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
- install DelugeFlow (optional)
- press "+Add" in deluge web ui.
- press "File"
- 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)
Change History (2)
by , 10 months ago
| Attachment: | content-type.diff added |
|---|
comment:1 by , 10 months ago
Note:
See TracTickets
for help on using tickets.



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