Fixed rare protocol error in HTTP client.

This commit is contained in:
XMRig 2020-08-07 21:54:22 +07:00
parent ae3ff0f570
commit 050568a4ab
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -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);
}