Skip to content

Commit b9d1f45

Browse files
rozhuk-imstickz
authored andcommitted
Remove "charset=UTF-8" from content type for HTTP post request to RPC2 due to rtorrent bug. (#2912)
Fixes: #2879
1 parent 7b8ccb2 commit b9d1f45

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

js/rtorrent.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ function rTorrentStub( URI )
200200
this.content = null;
201201
this.mountPoint = theURLs.XMLRPCMountPoint;
202202
this.faultString = [];
203-
this.contentType = "text/xml; charset=UTF-8";
203+
/* Remove 'charset=UTF-8' due to bug in rtorrent.
204+
* https://github.com/Novik/ruTorrent/issues/2879
205+
* https://github.com/rakshasa/rtorrent/issues/1444#issuecomment-2847868158
206+
*/
207+
this.contentType = "text/xml";
204208
this.dataType = "xml";
205209
this.method = "POST";
206210
this.ifModified = false;

0 commit comments

Comments
 (0)