aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_acl.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-05-24 19:34:25 +0200
committerGravatar attilamolnar2013-06-07 01:00:10 +0200
commit183d7a8dc01924ac69a5d160bf1b56ccccd06a4e (patch)
treea708b167c70f4ca53d3cef2475d83a36761774de /src/modules/m_httpd_acl.cpp
parentChange the API of m_sslinfo to be dynamic_reference-based (diff)
Change the API of m_httpd to be dynamic_reference-based
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
-rw-r--r--src/modules/m_httpd_acl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp
index 061d56f25..676b35ca4 100644
--- a/src/modules/m_httpd_acl.cpp
+++ b/src/modules/m_httpd_acl.cpp
@@ -43,8 +43,14 @@ class ModuleHTTPAccessList : public Module
{
std::string stylesheet;
std::vector<HTTPACL> acl_list;
+ HTTPdAPI API;
public:
+ ModuleHTTPAccessList()
+ : API(this)
+ {
+ }
+
void OnRehash(User* user)
{
acl_list.clear();
@@ -105,7 +111,7 @@ class ModuleHTTPAccessList : public Module
response.headers.SetHeader("X-Powered-By", "m_httpd_acl.so");
if (!extraheaderkey.empty())
response.headers.SetHeader(extraheaderkey, extraheaderval);
- response.Send();
+ API->SendResponse(response);
}
void OnEvent(Event& event) CXX11_OVERRIDE