Fixed two small typos in scripts/web-server.js.

This commit is contained in:
Marcello Nuccio 2011-09-02 19:26:52 +03:00
parent b0267a5bd5
commit 226dfafe63

View File

@ -18,7 +18,7 @@ function main(argv) {
function escapeHtml(value) {
return value.toString().
replace('<', '&lt;').
replace('>', '&gt').
replace('>', '&gt;').
replace('"', '&quot;');
}
@ -160,7 +160,7 @@ StaticServlet.prototype.sendRedirect_ = function(req, res, redirectUrl) {
'">here</a>.</p>'
);
res.end();
sys.puts('401 Moved Permanently: ' + redirectUrl);
sys.puts('301 Moved Permanently: ' + redirectUrl);
};
StaticServlet.prototype.sendFile_ = function(req, res, path) {