]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd.cpp
m_dnsbl: Use the blacklist name rather than the domain.
[user/henk/code/inspircd.git] / src / modules / m_httpd.cpp
index a20b85f9d003e7cc9e26e73d4c598046ec68b04e..28177a7a25d602a0646ce2929f132bad6ca8970b 100644 (file)
@@ -349,6 +349,7 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru
        {
                SendHeaders(n->str().length(), response, *hheaders);
                WriteData(n->str());
+               Close();
        }
 
        void AddToCull()
@@ -406,7 +407,7 @@ class ModuleHttpServer : public Module
 
        ModResult OnAcceptConnection(int nfd, ListenSocket* from, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server) CXX11_OVERRIDE
        {
-               if (from->bind_tag->getString("type") != "httpd")
+               if (!stdalgo::string::equalsci(from->bind_tag->getString("type"), "httpd"))
                        return MOD_RES_PASSTHRU;
 
                sockets.push_front(new HttpServerSocket(nfd, client->addr(), from, client, server, timeoutsec));