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')) }