From 86bfd7c5bcc91971881934c6a04192f2b3c7a9f9 Mon Sep 17 00:00:00 2001 From: indexzero Date: Wed, 7 Oct 2015 15:31:53 -0400 Subject: [PATCH] [fix] Do not trim `\n` from files read in. --- lib/nconf/stores/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nconf/stores/file.js b/lib/nconf/stores/file.js index a5ea26e..78a23ff 100644 --- a/lib/nconf/stores/file.js +++ b/lib/nconf/stores/file.js @@ -43,7 +43,7 @@ var File = exports.File = function (options) { this.secure.alg = this.secure.alg || 'aes-256-ctr'; if (this.secure.secretPath) { - this.secure.secret = fs.readFileSync(this.secure.secretPath, 'utf8').trim(); + this.secure.secret = fs.readFileSync(this.secure.secretPath, 'utf8'); } if (!this.secure.secret) {