mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-11 09:40:05 -04:00
Fix check_http sending HTTP/1.0 with v1.1 headers (#2638765)
This commit is contained in:
parent
c3c528952d
commit
16030bc497
2 changed files with 2 additions and 1 deletions
1
NEWS
1
NEWS
|
|
@ -23,6 +23,7 @@ This file documents the major additions and syntax changes between releases.
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue