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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/response.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-express",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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' : '');