diff --git a/lib/server/route.js b/lib/server/route.js index c64a04a0..6d73a3ce 100644 --- a/lib/server/route.js +++ b/lib/server/route.js @@ -121,7 +121,7 @@ Util.check(arguments, ['req', 'res', 'callback']); name = ponse.getPathName(request); - isAuth = Util.strCmp(name, ['/auth', '/auth/github']); + isAuth = RegExp('^(/auth|/auth/github)$').test(name); isFS = RegExp('^/$|^' + FS).test(name); p = {