[Pkg-javascript-commits] [node-static] 56/151: Update README.md
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository node-static.
commit 3fb381b1daf5b289b57e3c69fc30988351cc5274
Author: Alex Indigo <iam at alexindigo.com>
Date: Tue Jan 10 00:14:32 2012 -0800
Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 825c811..013bde1 100644
--- a/README.md
+++ b/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);
}
});
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git
More information about the Pkg-javascript-commits
mailing list