diff options
author | Peter Powell <petpow@saberuk.com> | 2018-08-07 18:31:47 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-08-07 18:38:12 +0100 |
commit | 090f3817584b6b0a25f661cfe73b61fb190136e2 (patch) | |
tree | adb7449ce49a8a7f2290c82e349e09fc840c7041 | |
parent | a37c11101acd5c8a4d32a5e3d8372baffc786836 (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.
-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(); } }; |