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.resHeader = resHeader;
resourceInfo.resBody = serverResData;
resourceInfo.length = serverResData.length;
resourceInfo.length = serverResData ? serverResData.length : 0;
GLOBAL.recorder && GLOBAL.recorder.updateRecord(resourceInfoId,resourceInfo);