But it should work too with {{{'Content-Type:
application/json;charset=utf-8'}}} although it doesn't:
{{{#!sh
$ curl 'http://127.0.0.1:8112/json' -X POST \
-H 'Content-Type: application/json;charset=utf-8' \
--data-raw '{"method":"daemon.get_version","params":[],"id":1}'
{ "result": null
, "id": null
, "error": { "code": 5
, "message": "JSONException: Invalid JSON request content-type:
application/json;charset=utf-8"
}
}
This is a valid content-type as per
https://greenbytes.de/tech/webdav/rfc2616.html#header.content-type
I believe I know how to fix this and will create a PR for it.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3521>
Deluge <https://deluge-torrent.org/>
Deluge Project
* status: new => closed
* resolution: => Fixed
* component: Unknown => Web UI
* milestone: needs verified => 2.1.0
Comment:
Merged fix: [b0dba97fec8dccdaa45f1112f84068cf7415a4ed]
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3521#comment:1>