Change HttpResponse creation method.
This commit is contained in:
parent
01ad6bf2d9
commit
9daa5874f5
9 changed files with 55 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue