ultimate-express 1.2.26 → 1.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/response.js +1 -0
package/package.json
CHANGED
package/src/response.js
CHANGED
|
@@ -389,6 +389,7 @@ module.exports = class Response extends Writable {
|
|
|
389
389
|
if(!this.headers['content-type']) {
|
|
390
390
|
const m = mime.lookup(fullpath);
|
|
391
391
|
if(m) this.type(m);
|
|
392
|
+
else this.type('application/octet-stream');
|
|
392
393
|
}
|
|
393
394
|
if(options.cacheControl) {
|
|
394
395
|
this.headers['cache-control'] = `public, max-age=${options.maxAge / 1000}` + (options.immutable ? ', immutable' : '');
|