diff --git a/src/base/net/http/HttpContext.cpp b/src/base/net/http/HttpContext.cpp index 37d8ed42..b348d7e4 100644 --- a/src/base/net/http/HttpContext.cpp +++ b/src/base/net/http/HttpContext.cpp @@ -126,6 +126,10 @@ bool xmrig::HttpContext::isRequest() const size_t xmrig::HttpContext::parse(const char *data, size_t size) { + if (size == 0) { + return size; + } + return http_parser_execute(m_parser, &http_settings, data, size); }