Permalink
Browse files

Merge pull request #43 from alexindigo/master

Fixed serveFile example.
  • Loading branch information...
2 parents af917a9 + 3fb381b commit 0b3f0be17e0bad592d6a776be364a09951962466 @phstc phstc committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -74,7 +74,7 @@ For example, you could serve an error page, when the initial request wasn't foun
request.addListener('end', function () {
fileServer.serve(request, response, function (e, res) {
if (e && (e.status === 404)) { // If the file wasn't found
- fileServer.serveFile('/not-found.html', request, response);
+ fileServer.serveFile('/not-found.html', 404, {}, request, response);
}
});
});

0 comments on commit 0b3f0be

Please sign in to comment.