diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | plugins/check_http.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -23,6 +23,7 @@ This file documents the major additions and syntax changes between releases. | |||
23 | check_http --onredirect=sticky follows using the same IP address (sf.net #2550208) | 23 | check_http --onredirect=sticky follows using the same IP address (sf.net #2550208) |
24 | Fixed coredump from check_nt when invalid drive is specified (#2179754 - Olli Hauer) | 24 | Fixed coredump from check_nt when invalid drive is specified (#2179754 - Olli Hauer) |
25 | Fixed passing of quotes in OID for check_snmp (#1985230 - Jan Wagner, patch by John Barbuto) | 25 | Fixed passing of quotes in OID for check_snmp (#1985230 - Jan Wagner, patch by John Barbuto) |
26 | Fixed check_http sending HTTP/1.0 with v1.1 headers (#2638765) | ||
26 | 27 | ||
27 | 1.4.13 25th Sept 2008 | 28 | 1.4.13 25th Sept 2008 |
28 | Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) | 29 | Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) |
diff --git a/plugins/check_http.c b/plugins/check_http.c index 248c0f94..2f2460c6 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -794,7 +794,7 @@ check_http (void) | |||
794 | } | 794 | } |
795 | #endif /* HAVE_SSL */ | 795 | #endif /* HAVE_SSL */ |
796 | 796 | ||
797 | asprintf (&buf, "%s %s HTTP/1.0\r\n%s\r\n", http_method, server_url, user_agent); | 797 | asprintf (&buf, "%s %s %s\r\n%s\r\n", http_method, server_url, host_name ? "HTTP/1.1" : "HTTP/1.0", user_agent); |
798 | 798 | ||
799 | /* tell HTTP/1.1 servers not to keep the connection alive */ | 799 | /* tell HTTP/1.1 servers not to keep the connection alive */ |
800 | asprintf (&buf, "%sConnection: close\r\n", buf); | 800 | asprintf (&buf, "%sConnection: close\r\n", buf); |