mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 04:57:39 +00:00
Fixed rare protocol error in HTTP client.
This commit is contained in:
parent
ae3ff0f570
commit
050568a4ab
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue