mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 08:39:34 +08:00
完善HttpRequester
This commit is contained in:
parent
e8a73997ce
commit
5c62887890
@ -36,8 +36,8 @@ HttpRequester::~HttpRequester(){
|
|||||||
|
|
||||||
int64_t HttpRequester::onResponseHeader(const string &status,const HttpHeader &headers) {
|
int64_t HttpRequester::onResponseHeader(const string &status,const HttpHeader &headers) {
|
||||||
_strRecvBody.clear();
|
_strRecvBody.clear();
|
||||||
//后续全部是content
|
//无Content-Length字段时默认后面没有content
|
||||||
return -1;
|
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