diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | plugins/check_http.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -2,6 +2,8 @@ This file documents the major additions and syntax changes between releases. 1.4.10 or 1.5 ?? Fix check_http buffer overflow vulnerability when following HTTP redirects + check_http now explicitly asks HTTP/1.1 servers to close the connection + after completion of the response Check_ldaps' guessing which secure method to use (starttls vs. ssl on connect) is now deprecated. See --help for further information. 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 26a074df..b371cd64 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -782,6 +782,9 @@ check_http (void) asprintf (&buf, "%s %s HTTP/1.0\r\n%s\r\n", http_method, server_url, user_agent); + /* tell HTTP/1.1 servers not to keep the connection alive */ + asprintf (&buf, "%sConnection: close\r\n", buf); + /* optionally send the host header info */ if (host_name) asprintf (&buf, "%sHost: %s\r\n", buf, host_name); |