diff options
-rw-r--r-- | include/modules/httpd.h | 2 | ||||
-rw-r--r-- | src/modules/m_httpd.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/modules/httpd.h b/include/modules/httpd.h index 60032cb16..b4b88bed5 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -135,7 +135,7 @@ class HTTPRequest * @param ip The IP address making the web request. * @param pdata The post data (content after headers) received with the request, up to Content-Length in size */ - HTTPRequest(Module* me, const std::string &eventid, const std::string &request_type, const std::string &uri, + HTTPRequest(const std::string& request_type, const std::string& uri, HTTPHeaders* hdr, HttpServerSocket* socket, const std::string &ip, const std::string &pdata) : type(request_type), document(uri), ipaddr(ip), postdata(pdata), headers(hdr), sock(socket) { diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 3558b0a2b..47416406e 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -326,11 +326,11 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru claimed = false; ModResult MOD_RESULT; - HTTPRequest acl((Module*)HttpModule, "httpd_acl", request_type, uri, &headers, this, ip, postdata); + HTTPRequest acl(request_type, uri, &headers, this, ip, postdata); FIRST_MOD_RESULT_CUSTOM(*aclevprov, HTTPACLEventListener, OnHTTPACLCheck, MOD_RESULT, (acl)); if (MOD_RESULT != MOD_RES_DENY) { - HTTPRequest url((Module*)HttpModule, "httpd_url", request_type, uri, &headers, this, ip, postdata); + HTTPRequest url(request_type, uri, &headers, this, ip, postdata); FIRST_MOD_RESULT_CUSTOM(*reqevprov, HTTPRequestEventListener, OnHTTPRequest, MOD_RESULT, (url)); if (MOD_RESULT == MOD_RES_PASSTHRU) { |