Skip to content
Browse files

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

  • Loading branch information...
1 parent b0267a5 commit 226dfafe63ccdf348842f2f4e64406b9ff00058e @marcenuc marcenuc committed Sep 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/web-server.js
View
4 scripts/web-server.js
@@ -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) {

0 comments on commit 226dfaf

Please sign in to comment.
Something went wrong with that request. Please try again.