From 2d5281d55197f87ea657ee2062584cdd1254059b Mon Sep 17 00:00:00 2001 From: Travis Person Date: Mon, 2 Jul 2018 15:30:00 -0700 Subject: [PATCH] fix: config.set rejects buffer values License: MIT Signed-off-by: Travis Person --- src/config/set.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/config/set.js b/src/config/set.js index fba4bd5bf..ae36a75b5 100644 --- a/src/config/set.js +++ b/src/config/set.js @@ -12,9 +12,7 @@ module.exports = (send) => { return callback(new Error('Invalid key type')) } - if (typeof value !== 'object' && - typeof value !== 'boolean' && - typeof value !== 'string') { + if (value === undefined || Buffer.isBuffer(value)) { return callback(new Error('Invalid value type')) }