mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-23 14:52:52 -05:00
Change HttpResponse creation method.
This commit is contained in:
@@ -102,8 +102,10 @@ void xmrig::Httpd::onConfigChanged(Config *config, Config *previousConfig)
|
||||
}
|
||||
|
||||
|
||||
void xmrig::Httpd::onHttp(const HttpRequest &req, HttpResponse &res)
|
||||
void xmrig::Httpd::onHttpRequest(const HttpRequest &req)
|
||||
{
|
||||
HttpResponse res(req.id());
|
||||
|
||||
LOG_INFO(GREEN_BOLD_S "OK");
|
||||
res.end();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
protected:
|
||||
void onConfigChanged(Config *config, Config *previousConfig) override;
|
||||
void onHttp(const HttpRequest &req, HttpResponse &res) override;
|
||||
void onHttpRequest(const HttpRequest &req) override;
|
||||
|
||||
private:
|
||||
Controller *m_controller;
|
||||
|
||||
Reference in New Issue
Block a user