summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3c5289)
raw | patch | inline | side by side (parent: c3c5289)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Tue, 17 Mar 2009 05:53:00 +0000 (01:53 -0400) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Tue, 17 Mar 2009 05:53:00 +0000 (01:53 -0400) |
NEWS | patch | blob | history | |
plugins/check_http.c | patch | blob | history |
index 5272d4f6ae14bc02137553b51f058dabf36934ba..00e03510fb3c8a025205b2fa6602d4b09e282ec9 100644 (file)
--- a/NEWS
+++ b/NEWS
check_http --onredirect=sticky follows using the same IP address (sf.net #2550208)
Fixed coredump from check_nt when invalid drive is specified (#2179754 - Olli Hauer)
Fixed passing of quotes in OID for check_snmp (#1985230 - Jan Wagner, patch by John Barbuto)
+ Fixed check_http sending HTTP/1.0 with v1.1 headers (#2638765)
1.4.13 25th Sept 2008
Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 248c0f94d3b652c27c3b38f0c366c99a500a4aeb..2f2460c637b53c0604ab6d31c23de961376f4d93 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
}
#endif /* HAVE_SSL */
- asprintf (&buf, "%s %s HTTP/1.0\r\n%s\r\n", http_method, server_url, user_agent);
+ asprintf (&buf, "%s %s %s\r\n%s\r\n", http_method, server_url, host_name ? "HTTP/1.1" : "HTTP/1.0", user_agent);
/* tell HTTP/1.1 servers not to keep the connection alive */
asprintf (&buf, "%sConnection: close\r\n", buf);