mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
支持http响应无content-length字段的情况:#850
This commit is contained in:
parent
7067472a18
commit
975c11b74c
@ -21,8 +21,7 @@ HttpRequester::~HttpRequester(){
|
||||
|
||||
ssize_t HttpRequester::onResponseHeader(const string &status,const HttpHeader &headers) {
|
||||
_strRecvBody.clear();
|
||||
//无Content-Length字段时默认后面没有content
|
||||
return 0;
|
||||
return HttpClientImp::onResponseHeader(status, headers);
|
||||
}
|
||||
|
||||
void HttpRequester::onResponseBody(const char *buf,size_t size,size_t recvedSize,size_t totalSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user