aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-08-07 18:31:47 +0100
committerGravatar Peter Powell2018-08-07 18:38:12 +0100
commit090f3817584b6b0a25f661cfe73b61fb190136e2 (patch)
treeadb7449ce49a8a7f2290c82e349e09fc840c7041 /src/modules/m_httpd.cpp
parentClean up the WHO helpop documentation. (diff)
downloadinspircd++-090f3817584b6b0a25f661cfe73b61fb190136e2.tar.gz
inspircd++-090f3817584b6b0a25f661cfe73b61fb190136e2.tar.bz2
inspircd++-090f3817584b6b0a25f661cfe73b61fb190136e2.zip
m_httpd: close the HTTP connection after serving a request.
We always send "Connection: Close" so this is the right behaviour according to section 8.1 of RFC 2616. Closes #1507.
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index 2b079c6ff..cb17a0383 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -336,6 +336,7 @@ class HttpServerSocket : public BufferedSocket
{
SendHeaders(n->str().length(), response, *hheaders);
WriteData(n->str());
+ Close();
}
};