diff options
Diffstat (limited to 'js/bin/HttpServer.js')
-rw-r--r-- | js/bin/HttpServer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/bin/HttpServer.js b/js/bin/HttpServer.js index 29e9cb1a1b2..fcfd68ef4d4 100644 --- a/js/bin/HttpServer.js +++ b/js/bin/HttpServer.js @@ -209,13 +209,14 @@ function Init() basePath = this._basePath; } - var filePath = path.resolve(path.join(basePath, req.url.pathname)); + var filePath = req.url.pathname; if(filePath.indexOf("es5/") !== -1 && path.extname(filePath) != ".js") { // We only host JS files in the es5 subdirectory, other files // (such as config/escapes.cfg are in test) filePath = filePath.replace("es5/", "") } + filePath = path.resolve(path.join(basePath, filePath)) // // If OPTIMIZE is set resolve Ice libraries to the corresponding minified |