Skip to content

Commit

Permalink
path.exists no longer exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegnat committed May 29, 2015
1 parent b8f3c14 commit 6ca67ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname,
filename = path.join(process.cwd(), uri).replace(/%20/g, ' ');

path.exists(filename, function(exists) {
fs.exists(filename, function(exists) {
if(!exists) {
response.writeHead(404, {"Content-Type": "text/plain"});
response.write("404 Not Found\n");
Expand Down

0 comments on commit 6ca67ab

Please sign in to comment.