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 957c9abfd..dd646d18f 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -50,8 +50,9 @@ class ModuleHttpStats : public Module
data << "<html><h1>Chickens</h1></html>";
- HTTPDocument response(&data, 200, event->GetData()->sock);
- Request req(&response, this, event->GetSource());
+ HTTPRequest* http = (HTTPRequest*)event->GetData();
+ HTTPDocument response(http->sock, &data, 200);
+ Request req((char*)&response, (Module*)this, event->GetSource());
req.Send();
}
}