...
|
...
|
@@ -42,7 +42,7 @@ module.exports=function(controllers){ |
|
|
options.formData = addFiles(req);
|
|
|
delete options.form;
|
|
|
}
|
|
|
// console.log('info','grayroute: request options: %j',options,{});
|
|
|
console.log('info','grayroute: request options: %j',options,{});
|
|
|
console.log("代理:",options);
|
|
|
//发起代理请求
|
|
|
request(options).pipe(res);
|
...
|
...
|
@@ -55,7 +55,7 @@ module.exports=function(controllers){ |
|
|
}
|
|
|
},function(err,res,body){
|
|
|
var code = res?res.statusCode:'no response';
|
|
|
// console.log('info','grayroute: session keep status:'+code);
|
|
|
console.log('info','grayroute: session keep status:'+code);
|
|
|
});
|
|
|
next();
|
|
|
}
|
...
|
...
|
|