diff --git a/index.js b/index.js index 2e2a304..62e6825 100644 --- a/index.js +++ b/index.js @@ -233,7 +233,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e executeJSGI("." + a, req, res, dh, jsgiRequestObject); } - if (href.match(new RegExp("/jsgi-bin(?:$|[?#/])",os.platform() == "win32" ? "i" : ""))) { + if (href.match(new RegExp("^/jsgi-bin(?:$|[?#/])",os.platform() == "win32" ? "i" : ""))) { fs.stat("." + decodeURIComponent(href), function (err, stats) { if (!err) { if (!stats.isFile()) {