Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #43 from alexindigo/master

Fixed serveFile example.
  • Loading branch information...
commit 0b3f0be17e0bad592d6a776be364a09951962466 2 parents af917a9 + 3fb381b
@phstc phstc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -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);
}
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.