mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 04:31:27 +00:00
bugfix for resBody.length
This commit is contained in:
parent
bf8a0a6aee
commit
70fe50e153
@ -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);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"main": "proxy.js",
|
||||
"bin": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user