summaryrefslogtreecommitdiffstats
path: root/web/attachments/331884-http_compliance.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/331884-http_compliance.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/331884-http_compliance.patch')
-rw-r--r--web/attachments/331884-http_compliance.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/attachments/331884-http_compliance.patch b/web/attachments/331884-http_compliance.patch
new file mode 100644
index 0000000..b2e3e44
--- /dev/null
+++ b/web/attachments/331884-http_compliance.patch
@@ -0,0 +1,19 @@
1diff --git a/plugins/check_http.c b/plugins/check_http.c
2index 79f6adf..a66ee9a 100644
3--- a/plugins/check_http.c
4+++ b/plugins/check_http.c
5@@ -802,11 +802,11 @@ check_http (void)
6
7 asprintf (&buf, "%s %s %s\r\n%s\r\n", http_method, server_url, host_name ? "H
8
9- /* tell HTTP/1.1 servers not to keep the connection alive */
10- asprintf (&buf, "%sConnection: close\r\n", buf);
11-
12 /* optionally send the host header info */
13 if (host_name) {
14+ /* tell HTTP/1.1 servers not to keep the connection alive */
15+ asprintf (&buf, "%sConnection: close\r\n", buf);
16+
17 /*
18 * Specify the port only if we're using a non-default port (see RFC 2616,
19 * 14.23). Some server applications/configurations cause trouble if the