Skip to content

Commit

Permalink
added support for fonts and xml as default content types
Browse files Browse the repository at this point in the history
  • Loading branch information
RIAEvangelist committed Jan 17, 2022
1 parent 3297824 commit 135da41
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,20 @@ server.deploy({port:9922,verbose:true});
css : 'text/css',
js : 'text/javascript',
json : 'application/json',
xml : 'text/xml',
txt : 'text/plain',
jpeg : 'image/jpeg',
jpg : 'image/jpeg',
png : 'image/png',
gif : 'image/gif',
ico : 'image/x-icon',
appcache: 'text/cache-manifest'
svg : 'image/svg+xml',
appcache: 'text/cache-manifest',
eot : 'application/vnd.ms-fontobject',
otf : 'font/otf',
ttf : 'font/ttf',
woff : 'font/woff',
woff2 : 'font/woff2'
},
restrictedType: {

Expand Down
10 changes: 8 additions & 2 deletions server/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,22 @@ const defaultConfigs={
contentType : {
html : 'text/html',
css : 'text/css',
js : 'application/javascript',
js : 'text/javascript',
json : 'application/json',
xml : 'text/xml',
txt : 'text/plain',
jpeg : 'image/jpeg',
jpg : 'image/jpeg',
png : 'image/png',
gif : 'image/gif',
ico : 'image/x-icon',
svg : 'image/svg+xml',
appcache: 'text/cache-manifest'
appcache: 'text/cache-manifest',
eot : 'application/vnd.ms-fontobject',
otf : 'font/otf',
ttf : 'font/ttf',
woff : 'font/woff',
woff2 : 'font/woff2'
},
restrictedType: {

Expand Down

0 comments on commit 135da41

Please sign in to comment.