From 741e715e816da102c1206ed71db13a9a4e638045 Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Tue, 11 Dec 2012 21:21:00 +0100 Subject: [PATCH] THRIFT-1763 jquery ajax code should send application/json content-type Patch: Kevin Radloff rogerr: my first git commit on Apache Thrift! ;-r --- lib/js/thrift.js | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.17.1