From ff6ba434b6d91b6a4a4e9b3a7fbb8cadced229ad Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Wed, 10 May 2017 01:48:41 +0000 Subject: Post-R1 API & other updates. Change-Id: Id0e2e15b95a5713a25a746534fc40b56599a5f06 Signed-off-by: Jack Lucas --- lib/auth.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/auth.js') diff --git a/lib/auth.js b/lib/auth.js index 54b08e2..9ddd7b3 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -21,7 +21,7 @@ See the License for the specific language governing permissions and limitations /* Extract user name and password from the 'Authorization' header */ const parseAuthHeader = function(authHeader){ - let parsedHeader = {}; + var parsedHeader = {}; const authItems = authHeader.split(/\s+/); // Split on the white space between Basic and the base64 encoded user:password @@ -48,15 +48,15 @@ exports.checkAuth = function(req, res, next) { next(); } else { - let err = new Error('Authentication required'); + var err = new Error('Authentication required'); err.status = 403; next(err); } } else { - let err = new Error ('Authentication required'); - err.status = 403; - next(err); + var errx = new Error ('Authentication required'); + errx.status = 403; + next(errx); } } else { -- cgit 1.2.3-korg