Permalink
Browse files

Changed initial title and added icon.

  • Loading branch information...
1 parent 5f8833e commit e42177659059a906df2ab5ee5343ddd37e9c6493 @walling committed Dec 14, 2010
Showing with 10 additions and 6 deletions.
  1. BIN favicon.ico
  2. +8 −5 pty.js
  3. +2 −1 terminal.html
View
Binary file not shown.
View
@@ -30,23 +30,26 @@ var server = http.createServer();
server.on('request', function(request, response) {
var filename = null;
- var type = 'text/plain';
+ var type = 'text/plain; charset=utf-8';
if (request.url === '/') {
filename = './terminal.html';
- type = 'text/html';
+ type = 'text/html; charset=utf-8';
} else if (request.url === '/jquery-1.4.4.min.js' || request.url === '/termemul.js') {
filename = '.' + request.url;
- type = 'text/javascript';
+ type = 'text/javascript; charset=utf-8';
+ } else if (request.url === '/favicon.ico') {
+ filename = './favicon.ico';
+ type = 'image/vnd.microsoft.icon';
}
if (filename) {
(function(type) {
fs.readFile(filename, function(err, buffer) {
- response.writeHead(200, { 'Content-Type': type + '; charset=utf-8' });
+ response.writeHead(200, { 'Content-Type': type });
response.end(buffer);
});
})(type);
} else {
- response.writeHead(404, { 'Content-Type': 'text/plain; charset=utf-8' });
+ response.writeHead(404, { 'Content-Type': type });
response.end('File Not Found!');
}
});
View
@@ -2,7 +2,8 @@
<html>
<head>
<meta charset='utf-8'>
- <title>Terminal</title>
+ <title>JS-Term</title>
+ <link rel="shortcut icon" href="/favicon.ico">
<style>
html {
overflow-y: scroll;

0 comments on commit e421776

Please sign in to comment.