diff options
| author | 2018-08-07 18:31:47 +0100 | |
|---|---|---|
| committer | 2018-08-07 18:38:12 +0100 | |
| commit | 090f3817584b6b0a25f661cfe73b61fb190136e2 (patch) | |
| tree | adb7449ce49a8a7f2290c82e349e09fc840c7041 /src/modules/m_httpd.cpp | |
| parent | Clean up the WHO helpop documentation. (diff) | |
| download | inspircd++-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.cpp | 1 |
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(); } }; |
