mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +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) {
|
ssize_t HttpRequester::onResponseHeader(const string &status,const HttpHeader &headers) {
|
||||||
_strRecvBody.clear();
|
_strRecvBody.clear();
|
||||||
//无Content-Length字段时默认后面没有content
|
return HttpClientImp::onResponseHeader(status, headers);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HttpRequester::onResponseBody(const char *buf,size_t size,size_t recvedSize,size_t totalSize) {
|
void HttpRequester::onResponseBody(const char *buf,size_t size,size_t recvedSize,size_t totalSize) {
|
||||||
|
Loading…
Reference in New Issue
Block a user