mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 04:41:26 +00:00
bugfix for records sorting
This commit is contained in:
parent
ae070c90ab
commit
531f4d0421
@ -125,7 +125,7 @@ function userRequestHandler(req,userRes){
|
||||
delete options.headers['accept-encoding']; //avoid gzipped response
|
||||
}catch(e){}
|
||||
|
||||
//update quest data
|
||||
//update request data
|
||||
reqData = userRule.replaceRequestData(req,reqData) || reqData;
|
||||
options.headers = util.lower_keys(options.headers);
|
||||
options.headers["content-length"] = reqData.length; //rewrite content length info
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "anyproxy",
|
||||
"version": "3.7.3Beta2",
|
||||
"version": "3.7.3Beta3",
|
||||
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
|
||||
"main": "proxy.js",
|
||||
"bin": {
|
||||
|
@ -117,7 +117,11 @@ var recorder;
|
||||
function initRecordSet(){
|
||||
$.getJSON("/lastestLog",function(res){
|
||||
if(typeof res == "object"){
|
||||
recordSet = res;
|
||||
res.map(function(item){
|
||||
if(item.id){
|
||||
recordSet[item.id] = item;
|
||||
}
|
||||
});
|
||||
eventCenter.dispatchEvent("recordSetUpdated");
|
||||
}
|
||||
});
|
||||
|
186
web/page.js
186
web/page.js
File diff suppressed because one or more lines are too long
@ -117,7 +117,11 @@ var recorder;
|
||||
function initRecordSet(){
|
||||
$.getJSON("/lastestLog",function(res){
|
||||
if(typeof res == "object"){
|
||||
recordSet = res;
|
||||
res.map(function(item){
|
||||
if(item.id){
|
||||
recordSet[item.id] = item;
|
||||
}
|
||||
});
|
||||
eventCenter.dispatchEvent("recordSetUpdated");
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user