diff options
| author | 2013-05-24 19:34:25 +0200 | |
|---|---|---|
| committer | 2013-06-07 01:00:10 +0200 | |
| commit | 183d7a8dc01924ac69a5d160bf1b56ccccd06a4e (patch) | |
| tree | a708b167c70f4ca53d3cef2475d83a36761774de /src/modules/m_httpd_acl.cpp | |
| parent | Change 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.cpp | 8 |
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 |
