From 53faab2f41427d323b66e6202830b9e08598bc55 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Thu, 11 Dec 2014 23:19:09 +0100 Subject: [PATCH] Ignore query variables --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 47876179..39a67106 100644 --- a/src/server.js +++ b/src/server.js @@ -71,7 +71,7 @@ module.exports = function(options) { }; function index(req, res, next) { - if (req.url != "/") return next(); + if (req.url.split("?")[0] != "/") return next(); return fs.readFile("client/index.html", "utf-8", function(err, file) { var data = _.merge( require("../package.json"),