Server.js code style
This commit is contained in:
parent
9c8b2b640d
commit
0cafc89ca4
20
server.js
20
server.js
@ -74,19 +74,19 @@ HttpServer.prototype.handleRequest_ = function(req, res) {
|
|||||||
function StaticServlet() {}
|
function StaticServlet() {}
|
||||||
|
|
||||||
StaticServlet.MimeMap = {
|
StaticServlet.MimeMap = {
|
||||||
'txt': 'text/plain',
|
'txt': 'text/plain',
|
||||||
'html': 'text/html',
|
'html': 'text/html',
|
||||||
'css': 'text/css',
|
'css': 'text/css',
|
||||||
'xml': 'application/xml',
|
'xml': 'application/xml',
|
||||||
'json': 'application/json',
|
'json': 'application/json',
|
||||||
'js': 'application/javascript',
|
'js': 'application/javascript',
|
||||||
'jpg': 'image/jpeg',
|
'jpg': 'image/jpeg',
|
||||||
'jpeg': 'image/jpeg',
|
'jpeg': 'image/jpeg',
|
||||||
'gif': 'image/gif',
|
'gif': 'image/gif',
|
||||||
'png': 'image/png',
|
'png': 'image/png',
|
||||||
'svg': 'image/svg+xml',
|
'svg': 'image/svg+xml',
|
||||||
'wav': 'audio/wav',
|
'wav': 'audio/wav',
|
||||||
'ico': 'image/vnd.microsoft.icon'
|
'ico': 'image/vnd.microsoft.icon'
|
||||||
};
|
};
|
||||||
|
|
||||||
StaticServlet.prototype.handleRequest = function(req, res) {
|
StaticServlet.prototype.handleRequest = function(req, res) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user