mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Optimize HttpResponse for fixed size API responses.
This commit is contained in:
@@ -105,7 +105,8 @@ void xmrig::Httpd::onConfigChanged(Config *config, Config *previousConfig)
|
||||
void xmrig::Httpd::onHttpRequest(const HttpRequest &req)
|
||||
{
|
||||
HttpResponse res(req.id());
|
||||
res.setStatus(200);
|
||||
|
||||
LOG_INFO(GREEN_BOLD_S "OK");
|
||||
res.end();
|
||||
res.end("{}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user