summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--plugins/check_http.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 79c4272..ff9a5ee 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ This file documents the major additions and syntax changes between releases.
2 2
31.4.10 or 1.5 ?? 31.4.10 or 1.5 ??
4 Fix check_http buffer overflow vulnerability when following HTTP redirects 4 Fix check_http buffer overflow vulnerability when following HTTP redirects
5 check_http now explicitly asks HTTP/1.1 servers to close the connection
6 after completion of the response
5 Check_ldaps' guessing which secure method to use (starttls vs. ssl on connect) 7 Check_ldaps' guessing which secure method to use (starttls vs. ssl on connect)
6 is now deprecated. See --help for further information. 8 is now deprecated. See --help for further information.
7 Check_disk now calls stat() on all filesystems to check. (Old: only the ones selected using -p) 9 Check_disk now calls stat() on all filesystems to check. (Old: only the ones selected using -p)
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 26a074d..b371cd6 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -782,6 +782,9 @@ check_http (void)
782 782
783 asprintf (&buf, "%s %s HTTP/1.0\r\n%s\r\n", http_method, server_url, user_agent); 783 asprintf (&buf, "%s %s HTTP/1.0\r\n%s\r\n", http_method, server_url, user_agent);
784 784
785 /* tell HTTP/1.1 servers not to keep the connection alive */
786 asprintf (&buf, "%sConnection: close\r\n", buf);
787
785 /* optionally send the host header info */ 788 /* optionally send the host header info */
786 if (host_name) 789 if (host_name)
787 asprintf (&buf, "%sHost: %s\r\n", buf, host_name); 790 asprintf (&buf, "%sHost: %s\r\n", buf, host_name);