summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_httpd_stats.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index 894aeed5b..a421ed366 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -29,7 +29,7 @@ using namespace std;
class ModuleHttpStats : public Module
{
Server* Srv;
- std::stringstream data;
+
public:
void ReadConfig()
@@ -44,11 +44,12 @@ class ModuleHttpStats : public Module
void OnEvent(Event* event)
{
+ std::stringstream data("");
+
if (event->GetEventID() == "httpd_url")
{
log(DEBUG,"HTTP URL!");
- data.clear();
data << "<html><h1>Chickens</h1></html>";
HTTPRequest* http = (HTTPRequest*)event->GetData();