Skip to content

Commit

Permalink
fixed comparison for missing field
Browse files Browse the repository at this point in the history
  • Loading branch information
leeliu committed Apr 19, 2016
1 parent 448fd14 commit 7fcc400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7fcc400

Please sign in to comment.