mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-06 23:52:38 -05:00
Compare commits
2 Commits
36fdfa2694
...
0d9af3347d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d9af3347d | ||
|
|
d24e13e605 |
@@ -189,10 +189,12 @@ void xmrig::HttpsClient::flush(bool close)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *data = nullptr;
|
char *data = nullptr;
|
||||||
const size_t size = BIO_get_mem_data(m_write, &data); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast)
|
const long size = BIO_get_mem_data(m_write, &data); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast)
|
||||||
std::string body(data, size);
|
std::string body(data, (size > 0) ? size : 0);
|
||||||
|
|
||||||
(void) BIO_reset(m_write);
|
(void) BIO_reset(m_write);
|
||||||
|
|
||||||
HttpContext::write(std::move(body), close);
|
if (!body.empty()) {
|
||||||
|
HttpContext::write(std::move(body), close);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user