diff options
Diffstat (limited to 'server/http.js')
-rw-r--r-- | server/http.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/http.js b/server/http.js index 465b726..fed72a7 100644 --- a/server/http.js +++ b/server/http.js @@ -13,6 +13,11 @@ module.exports.start = function () { http.createServer(function (req, res) { global.res = res; + + if (req.url.length > 1 && req.url.endsWith("/")) { + req.url = req.url.substr(0, req.url.length - 1); + } + req.url_orig = req.url; req.url_arg = req.url.split("?")[1]; req.url = req.url.split("?")[0]; |