Skip to content

Commit

Permalink
fix the "make server" exception problem
Browse files Browse the repository at this point in the history
  • Loading branch information
weixsong committed Apr 2, 2015
1 parent 95b1cf2 commit 1b79b8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var http = require('http'),
url = require('url'),
join = require('path').join,
exists = require('path').exists,
extname = require('path').extname,
join = require('path').join,
fs = require('fs'),
Expand Down Expand Up @@ -29,7 +28,7 @@ http.createServer(function(req, res){
res.end(err.message + "\n")
}

exists(path, function(exists){
fs.exists(path, function(exists){
if (!exists) return notFound()

fs.stat(path, function(err, stat){
Expand Down

0 comments on commit 1b79b8d

Please sign in to comment.