From: Roger Meier Date: Tue, 11 Dec 2012 20:21:00 +0000 (+0100) Subject: THRIFT-1763 jquery ajax code should send application/json content-type X-Git-Tag: 0.9.1~232 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=741e715e816da102c1206ed71db13a9a4e638045;p=common%2Fthrift.git THRIFT-1763 jquery ajax code should send application/json content-type Patch: Kevin Radloff rogerr: my first git commit on Apache Thrift! ;-r --- diff --git a/lib/js/thrift.js b/lib/js/thrift.js index 0bd512b5..cf89236e 100644 --- a/lib/js/thrift.js +++ b/lib/js/thrift.js @@ -230,6 +230,7 @@ Thrift.Transport.prototype = { data: postData, type: 'POST', cache: false, + contentType: 'application/json', dataType: 'text thrift', converters: { 'text thrift' : function(responseData) {