Optimize HttpResponse for fixed size API responses.
This commit is contained in:
parent
9daa5874f5
commit
202b74367a
3 changed files with 56 additions and 52 deletions
|
@ -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("{}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue