|
@@ -6,7 +6,7 @@ Path = require 'path'
|
|
|
module.exports = ContentTypeMapper =
|
|
module.exports = ContentTypeMapper =
|
|
|
map: (path) ->
|
|
map: (path) ->
|
|
|
switch Path.extname(path)
|
|
switch Path.extname(path)
|
|
|
- when '.txt', '.html', '.js', '.css'
|
|
|
|
|
|
|
+ when '.txt', '.html', '.js', '.css', '.svg'
|
|
|
return 'text/plain'
|
|
return 'text/plain'
|
|
|
when '.csv'
|
|
when '.csv'
|
|
|
return 'text/csv'
|
|
return 'text/csv'
|
|
@@ -20,7 +20,5 @@ module.exports = ContentTypeMapper =
|
|
|
return 'image/tiff'
|
|
return 'image/tiff'
|
|
|
when '.gif'
|
|
when '.gif'
|
|
|
return 'image/gif'
|
|
return 'image/gif'
|
|
|
- when '.svg'
|
|
|
|
|
- return 'image/svg+xml'
|
|
|
|
|
else
|
|
else
|
|
|
return 'application/octet-stream'
|
|
return 'application/octet-stream'
|