mirror of
https://github.com/SunRed/haste-server.git
synced 2025-09-06 05:20:14 +02:00
Merge branch 'master' of codeplane.com:seejohnrun/haste-server
This commit is contained in:
commit
315333d8eb
8 changed files with 203 additions and 46 deletions
|
@ -28,6 +28,7 @@ StaticHandler.contentTypeFor = function(ext) {
|
|||
else if (ext == '.html') return 'text/html';
|
||||
else if (ext == '.ico') return 'image/ico';
|
||||
else if (ext == '.txt') return 'text/plain';
|
||||
else if (ext == '.png') return 'image/png';
|
||||
else {
|
||||
winston.error('unable to determine content type for static asset with extension: ' + ext);
|
||||
return 'text/plain';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue