diff options
Diffstat (limited to 'lib/auth.js')
-rw-r--r-- | lib/auth.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |