|
|
@ -27,6 +27,7 @@ StaticHandler.contentTypeFor = function(ext) { |
|
|
|
else if (ext == '.css') return 'text/css'; |
|
|
|
else if (ext == '.css') return 'text/css'; |
|
|
|
else if (ext == '.html') return 'text/html'; |
|
|
|
else if (ext == '.html') return 'text/html'; |
|
|
|
else if (ext == '.ico') return 'image/ico'; |
|
|
|
else if (ext == '.ico') return 'image/ico'; |
|
|
|
|
|
|
|
else if (ext == '.txt') return 'text/plain'; |
|
|
|
else { |
|
|
|
else { |
|
|
|
winston.error('unable to determine content type for static asset with extension: ' + ext); |
|
|
|
winston.error('unable to determine content type for static asset with extension: ' + ext); |
|
|
|
return 'text/plain'; |
|
|
|
return 'text/plain'; |
|
|
|