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

master
Marcello Nuccio 13 years ago
parent b0267a5bd5
commit 226dfafe63

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