From 16030bc497668f36b53982192f67a60d0c8d18a4 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Tue, 17 Mar 2009 01:53:00 -0400 Subject: Fix check_http sending HTTP/1.0 with v1.1 headers (#2638765) --- plugins/check_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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) } #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); -- cgit v1.2.3-74-g34f1