mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
move response data from memory to local cache file
This commit is contained in:
@@ -23,8 +23,8 @@ function resToMsg(msg,cb){
|
||||
}
|
||||
|
||||
if(jsonData.type == "reqBody" && jsonData.id){
|
||||
result.type ="body";
|
||||
GLOBAL.recorder.getBodyUTF8(jsonData.id, function(err, data){
|
||||
result.type = "body";
|
||||
GLOBAL.recorder.getBody(jsonData.id, function(err, data){
|
||||
if(err){
|
||||
result.content = {
|
||||
id : null,
|
||||
@@ -34,7 +34,7 @@ function resToMsg(msg,cb){
|
||||
}else{
|
||||
result.content = {
|
||||
id : jsonData.id,
|
||||
body : data
|
||||
body : data.toString()
|
||||
};
|
||||
}
|
||||
cb && cb(result);
|
||||
|
||||
Reference in New Issue
Block a user