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_stats.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_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 99909d97f..faf42d071 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -31,8 +31,13 @@ class ModuleHttpStats : public Module { static std::map<char, char const*> const &entities; + HTTPdAPI API; public: + ModuleHttpStats() + : API(this) + { + } void init() CXX11_OVERRIDE { @@ -233,7 +238,7 @@ class ModuleHttpStats : public Module HTTPDocumentResponse response(this, *http, &data, 200); response.headers.SetHeader("X-Powered-By", "m_httpd_stats.so"); response.headers.SetHeader("Content-Type", "text/xml"); - response.Send(); + API->SendResponse(response); } } } |
