diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -23,7 +23,7 @@ module.exports = function (handler) {
 
     // Return middleware
     return function (req, res, callback) {
-        var header = req.headers['Authorization'] || req.headers['authorization'];
+        var header = req.headers.Authorization || req.headers.authorization;
         if (!header) callback(401);
         
         var auth = basic(header);
Resolve lint errors