diff options
Diffstat (limited to 'web/attachments/331884-http_compliance.patch')
| -rw-r--r-- | web/attachments/331884-http_compliance.patch | 19 |
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 @@ | |||
| 1 | diff --git a/plugins/check_http.c b/plugins/check_http.c | ||
| 2 | index 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 | ||
