mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 20:31:25 +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.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);
|
||||||
|
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user