lieko-express 0.0.10 → 0.0.11

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/lieko-express.js +3 -2
  2. package/package.json +1 -1
package/lieko-express.js CHANGED
@@ -78,7 +78,7 @@ class LiekoExpress {
78
78
  }
79
79
 
80
80
  let regexStr = pattern
81
- .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
81
+ .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
82
82
  .replace(/\\\*/g, '.*');
83
83
 
84
84
  regexStr = '^' + regexStr + '$';
@@ -912,7 +912,8 @@ ${cyan} (req, res, next) => {
912
912
 
913
913
  async _handleRequest(req, res) {
914
914
  if (this._isExcluded(req.url.split('?')[0])) {
915
- return res.status(404).end();
915
+ res.statusCode = 404;
916
+ return res.end();
916
917
  }
917
918
 
918
919
  this._enhanceRequest(req);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lieko-express",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/eiwSrvt/lieko-express"