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.
- package/lieko-express.js +3 -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
|
-
|
|
915
|
+
res.statusCode = 404;
|
|
916
|
+
return res.end();
|
|
916
917
|
}
|
|
917
918
|
|
|
918
919
|
this._enhanceRequest(req);
|