mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-27 16:05:14 +00:00
bugfix for resBody.length
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user