From 1edc060bdd30a2989383cdca607bf0bc5d239046 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Fri, 17 Feb 2012 12:45:34 -0700
Subject: [PATCH] @shane-tomlinson's feedback: fix test.ejs route to not
 include , which causes static middleware to redirect to  - now you can run
 tests by hitting /test, /test/, or /test/index.html

---
 lib/browserid/views.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/browserid/views.js b/lib/browserid/views.js
index 42810d861..0ca111100 100644
--- a/lib/browserid/views.js
+++ b/lib/browserid/views.js
@@ -158,7 +158,7 @@ exports.setup = function(app) {
   // serve up testing templates.  but NOT in staging or production.  see GH-1044
   if ([ 'https://browserid.org', 'https://diresworb.org' ].indexOf(config.get('public_url')) === -1) {
     // serve test.ejs to /test or /test/ or /test/index.html
-    app.get(/^\/test\/?(?:index.html)?$/, function (req, res) {
+    app.get(/^\/test\/(?:index.html)?$/, function (req, res) {
       res.render('test.ejs', {title: 'BrowserID QUnit Test', layout: false});
     });
   } else {
-- 
GitLab