commit | 741e715e816da102c1206ed71db13a9a4e638045 | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Tue Dec 11 21:21:00 2012 +0100 |
committer | Roger Meier <roger@apache.org> | Tue Dec 11 21:21:00 2012 +0100 |
tree | 247b0beeea443e4d54700a93b5276ff87fc569be | |
parent | 2b2560e836fcd07493bee15374f499b3eb77fe47 [diff] |
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 0bd512b..cf89236 100644 --- a/lib/js/thrift.js +++ b/lib/js/thrift.js
@@ -230,6 +230,7 @@ data: postData, type: 'POST', cache: false, + contentType: 'application/json', dataType: 'text thrift', converters: { 'text thrift' : function(responseData) {