Skip to content

Commit 226dfaf

Browse files
committed
Fixed two small typos in scripts/web-server.js.
1 parent b0267a5 commit 226dfaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/web-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function main(argv) {
1818
function escapeHtml(value) {
1919
return value.toString().
2020
replace('<', '&lt;').
21-
replace('>', '&gt').
21+
replace('>', '&gt;').
2222
replace('"', '&quot;');
2323
}
2424

@@ -160,7 +160,7 @@ StaticServlet.prototype.sendRedirect_ = function(req, res, redirectUrl) {
160160
'">here</a>.</p>'
161161
);
162162
res.end();
163-
sys.puts('401 Moved Permanently: ' + redirectUrl);
163+
sys.puts('301 Moved Permanently: ' + redirectUrl);
164164
};
165165

166166
StaticServlet.prototype.sendFile_ = function(req, res, path) {

0 commit comments

Comments
 (0)