From a210c64fc8c103fc28cf81674a36fa10688bbaf1 Mon Sep 17 00:00:00 2001 From: ruanshudong Date: Wed, 5 Aug 2020 18:30:27 +0800 Subject: [PATCH] fix tc_http bug --- Changelist.md | 2 ++ util/src/tc_http.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelist.md b/Changelist.md index 99cfcd8..1f7d127 100644 --- a/Changelist.md +++ b/Changelist.md @@ -3,9 +3,11 @@ ### en - add tarsmerge, can merge mutil tars file to one - fix tars-tools.cmake, support: make xxxx-upload-tars, upload tars to web, for test +- fix when http header has not content-length, tc_http decode bug ### cn - 添加 tarsmerge工具, 支持合并多个tars文件到一个 - 修改tars-tools.cmake, 支持make xxx-upload-tars, 上传本服务的tars文件到web, 方便自动测试 +- 修改当http头没有content-length时的解析bug ## v2.4.7 2020.07.19 ### en diff --git a/util/src/tc_http.cpp b/util/src/tc_http.cpp index ddf91e4..e25aaca 100755 --- a/util/src/tc_http.cpp +++ b/util/src/tc_http.cpp @@ -1281,7 +1281,7 @@ bool TC_HttpResponse::incrementDecode(TC_NetWorkBuffer &buff) setContentLength(_iRecvContentLength); } - return true; + return false; } else {