From b76b407b33973bf1ac00a842b5b325fb8e378170 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 9 May 2025 12:36:42 +0100 Subject: Move HTTP types to the HTTP namespace. --- modules/webcpanel/pages/hostserv/hostserv.h | 2 +- modules/webcpanel/pages/hostserv/request.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/webcpanel/pages/hostserv') diff --git a/modules/webcpanel/pages/hostserv/hostserv.h b/modules/webcpanel/pages/hostserv/hostserv.h index 5473f60a9..c1cae3579 100644 --- a/modules/webcpanel/pages/hostserv/hostserv.h +++ b/modules/webcpanel/pages/hostserv/hostserv.h @@ -17,5 +17,5 @@ class WebCPanel::HostServ::Request final { public: Request(const Anope::string &cat, const Anope::string &u); - bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &) override; + bool OnRequest(HTTP::Provider *, const Anope::string &, HTTP::Client *, HTTP::Message &, HTTP::Reply &, NickAlias *, TemplateFileServer::Replacements &) override; }; diff --git a/modules/webcpanel/pages/hostserv/request.cpp b/modules/webcpanel/pages/hostserv/request.cpp index 35bc61610..6eb85e920 100644 --- a/modules/webcpanel/pages/hostserv/request.cpp +++ b/modules/webcpanel/pages/hostserv/request.cpp @@ -11,12 +11,12 @@ WebCPanel::HostServ::Request::Request(const Anope::string &cat, const Anope::str { } -bool WebCPanel::HostServ::Request::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements) +bool WebCPanel::HostServ::Request::OnRequest(HTTP::Provider *server, const Anope::string &page_name, HTTP::Client *client, HTTP::Message &message, HTTP::Reply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements) { if (message.post_data.count("req") > 0) { std::vector params; - params.push_back(HTTPUtils::URLDecode(message.post_data["req"])); + params.push_back(HTTP::URLDecode(message.post_data["req"])); WebPanel::RunCommand(client, na->nc->display, na->nc, "HostServ", "hostserv/request", params, replacements, "CMDR"); } -- cgit