mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
add replaceServerResDataAsync
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user