ming_node 2.9.1 → 2.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* By : Minglie
|
4
4
|
* QQ: 934031452
|
5
5
|
* Date :2021.12.01
|
6
|
-
* version :2.9.
|
6
|
+
* version :2.9.2
|
7
7
|
*/
|
8
8
|
var http = require('http');
|
9
9
|
var https = require('https');
|
@@ -2082,8 +2082,9 @@ M.axios = function (axiosConfig) {
|
|
2082
2082
|
privateObj.dealUseServer = async function (req, res) {
|
2083
2083
|
for (let key in M._use){
|
2084
2084
|
if(M._use[key].regExp.test(req.url)){
|
2085
|
-
|
2086
|
-
|
2085
|
+
if(!res.alreadySend){
|
2086
|
+
await M._use[key].callback(req,res);
|
2087
|
+
}
|
2087
2088
|
}
|
2088
2089
|
}
|
2089
2090
|
}
|
package/package.json
CHANGED