...
|
...
|
@@ -47,16 +47,16 @@ module.exports=function(controllers){ |
|
|
//发起代理请求
|
|
|
request(options).pipe(res);
|
|
|
}else{
|
|
|
// request({
|
|
|
// method:'GET',
|
|
|
// url: Iaccount.url + Iaccount.sessionKeep,
|
|
|
// headers: {
|
|
|
// 'Cookie':req.session.gray
|
|
|
// }
|
|
|
// },function(err,res,body){
|
|
|
// var code = res?res.statusCode:'no response';
|
|
|
// console.log('info','grayroute: session keep status:'+code);
|
|
|
// });
|
|
|
request({
|
|
|
method:'GET',
|
|
|
url: Iaccount.url + Iaccount.sessionKeep,
|
|
|
headers: {
|
|
|
'Cookie':req.session.gray
|
|
|
}
|
|
|
},function(err,res,body){
|
|
|
var code = res?res.statusCode:'no response';
|
|
|
console.log('info','grayroute: session keep status:'+code);
|
|
|
});
|
|
|
next();
|
|
|
}
|
|
|
}
|
...
|
...
|
|