http_client的chunked传输的一点bug
FlushHip opened this issue · comments
cinatra/include/cinatra/http_client.hpp
Lines 893 to 898 in b9f99b5
else
下面应该加上read_buf_.consume(CRCF.size())
。消耗掉crlf,不然如果两个请求共用一个连接会出现协议解析错误。
稍后提一个pr修复下。
还有一处重复代码:
cinatra/include/cinatra/http_client.hpp
Lines 383 to 394 in b9f99b5
cinatra/include/cinatra/http_client.hpp
Lines 406 to 417 in b9f99b5