Skip to content

Commit

Permalink
Added support for log extension in static file processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Dec 10, 2024
1 parent 0c0cc41 commit 0c6bf72
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 @@ -11,6 +11,7 @@
- fixed context in the components
- fixed URL downloading templates in `TEMPLATE()` method
- fixed parsing of unpaired elements in HTMLParser
- added support for `log` extension in static file processing

========================
0.0.7
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function unlink(arr, callback) {
CONF.$httpmaxsize = 256; // kB
CONF.$httprangebuffer = 5120; // 5 MB
CONF.$httptimeout = 5; // 5 seconds
CONF.$httpfiles = { 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, xsd: true, xsl: true, xslt: true, ipynb: true, ijsnb: true };
CONF.$httpfiles = { 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, xsd: true, xsl: true, xslt: true, ipynb: true, ijsnb: true, log: true };
CONF.$httpchecktypes = true; // for multipart data only
CONF.$httpmaxage = 60; // in seconds
CONF.$httpmaxkeys = 33;
Expand Down
1 change: 1 addition & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ var CONTENTTYPES = {
ui: 'application/json', // UI builder
jsx: 'text/jsx',
less: 'text/css',
log: 'text/plain',
m3u8: 'application/x-mpegURL',
m4a: 'audio/mp4a-latm',
m4v: 'video/x-m4v',
Expand Down

0 comments on commit 0c6bf72

Please sign in to comment.