summaryrefslogtreecommitdiffstats
path: root/lib/cli/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cli/server.js')
-rw-r--r--lib/cli/server.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cli/server.js b/lib/cli/server.js
index 3bd5d18..8d3d7ce 100644
--- a/lib/cli/server.js
+++ b/lib/cli/server.js
@@ -64,8 +64,9 @@ Server.prototype.start = function(dir, port) {
}
// Send file
- send(req, url.parse(req.url).pathname)
- .root(dir)
+ send(req, url.parse(req.url).pathname, {
+ root: dir
+ })
.on('error', error)
.on('directory', redirect)
.pipe(res);