From 1b4136040ad9a4cff703fc2ab45feecefa842ee8 Mon Sep 17 00:00:00 2001 From: Peter Rybar Date: Mon, 20 Feb 2017 14:41:46 +0100 Subject: [PATCH] Set proper content type for post API call --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index beea74a..5ab8d23 100644 --- a/lib/client.js +++ b/lib/client.js @@ -234,7 +234,7 @@ client.prototype.post = function(url, body, callback){ return callback("no oauth token, make sure to call client.connect and client.verify"); } - this.connection.post(url, this.oauthToken, this.oauthSecret, body, function(error, data, result){ + this.connection.post(url, this.oauthToken, this.oauthSecret, body, 'application/json', function(error, data, result){ if(error){ return callback(error); }