Module: monitoring-plugins Branch: master Commit: 1861e6a2d911e3adf250e3c33720b8f56d0abbdf Author: Laurent Licour <laur...@licour.com> Committer: Sven Nierlein <s...@nierlein.de> Date: Sun May 3 10:32:56 2015 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=1861e6a
plugins/check_http.c - fix regression introduced in commit 388ea928 (Host header) --- plugins/check_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_http.c b/plugins/check_http.c index b73e2d9..9dc2765 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -930,7 +930,7 @@ check_http (void) /* check if Host header is explicitly set in options */ if (http_opt_headers_count) { for (i = 0; i < http_opt_headers_count ; i++) { - if (strcmp(http_opt_headers[i], "Host: ")) { + if (strncmp(http_opt_headers[i], "Host:", 5) == 0) { force_host_header = http_opt_headers[i]; } }