diff --git a/github.js b/github.js index c3431a08..1c27e75a 100644 --- a/github.js +++ b/github.js @@ -28,7 +28,7 @@ url: API_URL + path, data: JSON.stringify(data), dataType: 'json', - contentType: 'application/x-www-form-urlencoded', + contentType: 'application/json', success: function(res) { cb(null, res); }, error: function(err) { cb(err); }, headers : headers() @@ -40,7 +40,7 @@ type: method, url: API_URL + path, data: JSON.stringify(data), - contentType: 'application/x-www-form-urlencoded', + contentType: 'application/json', success: function(res) { cb(null, res); }, error: function(err) { cb(err); }, headers : headers() @@ -345,4 +345,4 @@ return new Github.User(); }; }; -}).call(this); \ No newline at end of file +}).call(this);