From 349a14a004460fdffd5048dd80fa9a961ee9fe93 Mon Sep 17 00:00:00 2001 From: Benjamin Klein Date: Tue, 18 Jun 2019 23:13:57 +0200 Subject: [PATCH] #6 added missing parameters --- lib/rest_client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rest_client.js b/lib/rest_client.js index cd9ca7d..7ade8f2 100644 --- a/lib/rest_client.js +++ b/lib/rest_client.js @@ -36,7 +36,7 @@ module.exports.RestClient = function (options) { logger.info({ url: request_data.url, method: request_data.method, - headers: buildHeader(request_token), + headers: buildHeader(request_data, request_token = ''), json: true, body: request_data.body, }); @@ -45,7 +45,7 @@ module.exports.RestClient = function (options) { request({ url: request_data.url, method: request_data.method, - headers: buildHeader(request_token), + headers: buildHeader(request_data, request_token = ''), json: true, body: request_data.body, }, function (error, response, body) {