From 7fcc4008e86486a8e8183548356cf238c05da959 Mon Sep 17 00:00:00 2001 From: Lee Liu Date: Mon, 18 Apr 2016 21:37:36 -0700 Subject: [PATCH] fixed comparison for missing field --- lib/api-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api-client.js b/lib/api-client.js index a7589010..e27833dd 100644 --- a/lib/api-client.js +++ b/lib/api-client.js @@ -75,7 +75,7 @@ module.exports.getAuthToken = function(config, agentName, socket) { config.TAIL_MODE = body.tailmode; } - if (!process.env.COMPRESS && body.compress !== null) { + if (!process.env.COMPRESS && body.compress !== undefined) { config.COMPRESS = body.compress; }