bugfix for resBody.length

This commit is contained in:
加里 2014-09-11 10:33:03 +08:00
parent bf8a0a6aee
commit 70fe50e153
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ function userRequestHandler(req,userRes){
resourceInfo.statusCode = statusCode; resourceInfo.statusCode = statusCode;
resourceInfo.resHeader = resHeader; resourceInfo.resHeader = resHeader;
resourceInfo.resBody = serverResData; resourceInfo.resBody = serverResData;
resourceInfo.length = serverResData.length; resourceInfo.length = serverResData ? serverResData.length : 0;
GLOBAL.recorder && GLOBAL.recorder.updateRecord(resourceInfoId,resourceInfo); GLOBAL.recorder && GLOBAL.recorder.updateRecord(resourceInfoId,resourceInfo);

View File

@ -1,6 +1,6 @@
{ {
"name": "anyproxy", "name": "anyproxy",
"version": "2.3.0", "version": "2.3.1",
"description": "a charles/fiddler like proxy written in NodeJs, which can handle HTTPS requests and CROS perfectly.", "description": "a charles/fiddler like proxy written in NodeJs, which can handle HTTPS requests and CROS perfectly.",
"main": "proxy.js", "main": "proxy.js",
"bin": { "bin": {