From 00d5fc337ec025059ec07c73637e7312f8bbdcc6 Mon Sep 17 00:00:00 2001 From: Pilwon Huh Date: Thu, 20 Jul 2017 17:29:49 -0400 Subject: [PATCH] Fix auth/users.getInfo to return JSON (fixes #158) --- src/auth/UsersManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/UsersManager.js b/src/auth/UsersManager.js index cbd417e59..874f56f89 100644 --- a/src/auth/UsersManager.js +++ b/src/auth/UsersManager.js @@ -74,7 +74,8 @@ UsersManager.prototype.getInfo = function (accessToken, cb) { var promise = getRequestPromise({ method: 'GET', url: url, - headers: headers + headers: headers, + data: {} }); // Use callback if given.