You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/12/11 21:28:39 UTC

git commit: THRIFT-1763 jquery ajax code should send application/json content-type Patch: Kevin Radloff rogerr: my first git commit on Apache Thrift! ; -r

Updated Branches:
  refs/heads/master 2b2560e83 -> 741e715e8


THRIFT-1763 jquery ajax code should send application/json content-type
Patch: Kevin Radloff
rogerr: my first git commit on Apache Thrift!
;-r


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/741e715e
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/741e715e
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/741e715e

Branch: refs/heads/master
Commit: 741e715e816da102c1206ed71db13a9a4e638045
Parents: 2b2560e
Author: Roger Meier <ro...@apache.org>
Authored: Tue Dec 11 21:21:00 2012 +0100
Committer: Roger Meier <ro...@apache.org>
Committed: Tue Dec 11 21:21:00 2012 +0100

----------------------------------------------------------------------
 lib/js/thrift.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/741e715e/lib/js/thrift.js
----------------------------------------------------------------------
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 @@ Thrift.Transport.prototype = {
             data: postData,
             type: 'POST',
             cache: false,
+            contentType: 'application/json',
             dataType: 'text thrift',
             converters: {
                 'text thrift' : function(responseData) {