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)
|
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);
|
return http_parser_execute(m_parser, &http_settings, data, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue