summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index ef3bd062c..957c9abfd 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -29,6 +29,7 @@ using namespace std;
class ModuleHttpStats : public Module
{
Server* Srv;
+ std::stringstream data;
public:
void ReadConfig()
@@ -46,6 +47,12 @@ class ModuleHttpStats : public Module
if (event->GetEventID() == "httpd_url")
{
log(DEBUG,"HTTP URL!");
+
+ data << "<html><h1>Chickens</h1></html>";
+
+ HTTPDocument response(&data, 200, event->GetData()->sock);
+ Request req(&response, this, event->GetSource());
+ req.Send();
}
}