remove redundant rule file

This commit is contained in:
OttoMao
2015-01-30 10:57:46 +08:00
parent 1057676b9b
commit e8d7e12960
3 changed files with 64 additions and 16 deletions

View File

@@ -9,9 +9,6 @@ The following are sample rules.
* rule_allow_CORS.js
* add CORS headers to allow cross-domain ajax request
* 为ajax请求增加跨域头
* rule_assign_ip_address.js
* assign an ip address to a specified domain
* 为某个域名指定ip地址
* rule_intercept_some_https_requests.js
* intercept https requests toward github.com and append some data
* 截获github.com的https请求再在最后加点文字

View File

@@ -1,13 +0,0 @@
//sample : assign 127.0.0.1 to www.taobao.com
module.exports = {
replaceRequestOption : function(req,option){
if(option.hostname == "www.taobao.com"){
option.hostname = "127.0.0.1";
}
return option;
}
};