Skip to content

Commit

Permalink
Enabled .xslt, .xsd and .xls extensions for handling static files.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Nov 10, 2023
1 parent e43ea9a commit 4b416e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- updated Flow module
- added support for `jsonschemas/*.txt` with inline implementation of the JSON schemas
- added a `String.markdown(opt)` parser
- enabled `.xslt`, `.xsd` and `.xls` extensions for handling static files

========================
0.0.91
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ function Framework() {
static_url_font: '/fonts/',
static_url_download: '/download/',
static_url_components: '/components.',
static_accepts: { flac: true, jpg: true, jpeg: true, png: true, gif: true, ico: true, wasm: true, js: true, mjs: true, css: true, txt: true, xml: true, woff: true, woff2: true, otf: true, ttf: true, eot: true, svg: true, zip: true, rar: true, pdf: true, docx: true, xlsx: true, doc: true, xls: true, html: true, htm: true, appcache: true, manifest: true, map: true, ogv: true, ogg: true, mp4: true, mp3: true, webp: true, webm: true, swf: true, package: true, json: true, ui: true, md: true, m4v: true, jsx: true, heif: true, heic: true, ics: true, ts: true, m3u8: true, wav: true },
static_accepts: { flac: true, jpg: true, jpeg: true, png: true, gif: true, ico: true, wasm: true, js: true, mjs: true, css: true, txt: true, xml: true, woff: true, woff2: true, otf: true, ttf: true, eot: true, svg: true, zip: true, rar: true, pdf: true, docx: true, xlsx: true, doc: true, xls: true, html: true, htm: true, appcache: true, manifest: true, map: true, ogv: true, ogg: true, mp4: true, mp3: true, webp: true, webm: true, swf: true, package: true, json: true, ui: true, md: true, m4v: true, jsx: true, heif: true, heic: true, ics: true, ts: true, m3u8: true, wav: true, xslt: true, xsd: true, xls: true },

// 'static-accepts-custom': [],
default_crypto_iv: Buffer.from(self.syshash).slice(0, 16),
Expand Down
1 change: 1 addition & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ var CONTENTTYPES = {
xml: 'application/xml',
xpm: 'image/x-xpixmap',
xsl: 'application/xml',
xsd: 'application/xml',
xslt: 'application/xslt+xml',
zip: 'application/zip',
'7zip': 'application/x-7z-compressed'
Expand Down

0 comments on commit 4b416e2

Please sign in to comment.