add replaceServerResDataAsync

This commit is contained in:
加里
2014-10-21 11:18:55 +08:00
parent 025a6803ea
commit c6c2355d17
12 changed files with 78 additions and 159 deletions

View File

@@ -3,12 +3,12 @@
module.exports = {
replaceServerResData: function(req,res,serverResData){
replaceServerResDataAsync: function(req,res,serverResData,callback){
//add "hello github" to all github pages
if(req.headers.host == "github.com"){
serverResData += "hello github";
}
return serverResData;
callback(serverResData);
},
shouldInterceptHttpsReq :function(req){