]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_stats.cpp
Stuff for adding extra headers to a response (for Authorization: and Location: etc)
[user/henk/code/inspircd.git] / src / modules / m_httpd_stats.cpp
index 3d02c68b5f198a2d03325cf2c0b868ca29114669..894aeed5b3a344451f97a9632c44e300a8ebc471 100644 (file)
@@ -52,7 +52,7 @@ class ModuleHttpStats : public Module
                        data << "<html><h1>Chickens</h1></html>";
 
                        HTTPRequest* http = (HTTPRequest*)event->GetData();
-                       HTTPDocument response(http->sock, &data, 200);
+                       HTTPDocument response(http->sock, &data, 200, "X-Powered-By: m_http_stats.so\r\n");
                        Request req((char*)&response, (Module*)this, event->GetSource());
                        req.Send();