From 262798dc2de47752d0406f9e38a95844ced8dfef Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 15 Jan 2014 14:22:44 -0200 Subject: [PATCH] fix #33 --- jquery.jsonrpcclient.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jquery.jsonrpcclient.js b/jquery.jsonrpcclient.js index 9613483..ce900f6 100644 --- a/jquery.jsonrpcclient.js +++ b/jquery.jsonrpcclient.js @@ -90,6 +90,7 @@ url : this.options.ajaxUrl, data : $.toJSON(request), dataType : 'json', + contentType: "application/json; charset=utf-8", cache : false, beforeSend: function (xhr) { if( options.username != null && options.username != undefined ) { @@ -154,6 +155,7 @@ url : this.options.ajaxUrl, data : $.toJSON(request), dataType : 'json', + contentType: "application/json; charset=utf-8", cache : false, beforeSend: function (xhr){ if( options.username != null && options.username != undefined ) { @@ -395,6 +397,7 @@ url : self.jsonrpcclient.options.ajaxUrl, data : $.toJSON(batch_request), dataType : 'json', + contentType: "application/json; charset=utf-8", cache : false, type : 'POST',