THRIFT-1763 jquery ajax code should send application/json content-type
authorRoger Meier <roger@apache.org>
Tue, 11 Dec 2012 20:21:00 +0000 (21:21 +0100)
committerRoger Meier <roger@apache.org>
Tue, 11 Dec 2012 20:21:00 +0000 (21:21 +0100)
Patch: Kevin Radloff
rogerr: my first git commit on Apache Thrift!
;-r

lib/js/thrift.js

index 0bd512b..cf89236 100644 (file)
@@ -230,6 +230,7 @@ Thrift.Transport.prototype = {
             data: postData,
             type: 'POST',
             cache: false,
+            contentType: 'application/json',
             dataType: 'text thrift',
             converters: {
                 'text thrift' : function(responseData) {