From 4cf0651e881f8cbe8dcf0942a02886d2ebab076b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20F=2E=20Romaniello?= Date: Sun, 17 May 2015 22:05:00 -0300 Subject: [PATCH] minor --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 3f933df..dbf5c05 100644 --- a/lib/index.js +++ b/lib/index.js @@ -73,7 +73,7 @@ function authorize(options, onConnection) { var scheme = parts[0], credentials = parts[1]; - if (scheme === 'Bearer') { + if (scheme.toLowerCase() === 'bearer') { token = credentials; } } else {