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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. 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.1
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
- await M._use[key].callback(req,res);
2086
- return;
2085
+ if(!res.alreadySend){
2086
+ await M._use[key].callback(req,res);
2087
+ }
2087
2088
  }
2088
2089
  }
2089
2090
  }
package/package.json CHANGED
@@ -46,5 +46,5 @@
46
46
  "scripts": {
47
47
  "test": "echo \"Error: no test specified\" && exit 1"
48
48
  },
49
- "version": "2.9.1"
49
+ "version": "2.9.2"
50
50
  }