summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-07 18:31:47 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-07 18:38:12 +0100
commit090f3817584b6b0a25f661cfe73b61fb190136e2 (patch)
treeadb7449ce49a8a7f2290c82e349e09fc840c7041 /src/modules/m_httpd.cpp
parenta37c11101acd5c8a4d32a5e3d8372baffc786836 (diff)
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();
}
};