optimze map icon

This commit is contained in:
OttoMao
2015-07-08 17:55:14 +08:00
parent f4c96180b5
commit ffd59eb055
12 changed files with 141 additions and 81 deletions

View File

@@ -44,7 +44,15 @@ function userRequestHandler(req,userRes){
logUtil.printLog(color.green("\nreceived request to : " + host + path));
//get request body and route to local or remote
async.series([fetchReqData,routeReq],function(){});
async.series([
fetchReqData,
routeReq
],function(){
//mark some ext info
if(req.anyproxy_map_local){
GLOBAL.recorder.updateExtInfo(resourceInfoId, {map : req.anyproxy_map_local});
}
});
//get request body
function fetchReqData(callback){
@@ -408,5 +416,5 @@ module.exports.getRuleSummary = getRuleSummary;
note
req.url is wired
in http server : http://www.example.com/a/b/c
in https server : /work/alibaba
in https server : /a/b/c
*/