Skip to content

Commit

Permalink
Fixed two small typos in scripts/web-server.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcenuc committed Sep 2, 2011
1 parent b0267a5 commit 226dfaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/web-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function main(argv) {
function escapeHtml(value) {
return value.toString().
replace('<', '&lt;').
replace('>', '&gt').
replace('>', '&gt;').
replace('"', '&quot;');
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 226dfaf

Please sign in to comment.