修复编译问题

This commit is contained in:
xiongziliang 2018-09-23 14:49:49 +08:00
parent 67644a7bad
commit aab3a583b9

View File

@ -18,7 +18,7 @@ void HttpRequestSplitter::input(const char *data,uint64_t len) {
splitPacket: splitPacket:
//数据按照请求头处理 //数据按照请求头处理
char *index = nullptr; const char *index = nullptr;
while (_content_len == 0 && (index = strstr(ptr,"\r\n\r\n")) != nullptr) { while (_content_len == 0 && (index = strstr(ptr,"\r\n\r\n")) != nullptr) {
//_content_len == 0这是请求头 //_content_len == 0这是请求头
_content_len = onRecvHeader(ptr, index - ptr + 4); _content_len = onRecvHeader(ptr, index - ptr + 4);