diff options
author | Laurent Licour <laurent@licour.com> | 2015-05-03 08:32:56 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2015-10-02 19:12:58 (GMT) |
commit | 1861e6a2d911e3adf250e3c33720b8f56d0abbdf (patch) | |
tree | 9aabcaa62426eefcb15036e9bf6eab30cccfb7ce /plugins | |
parent | 44ba1f7064a1bd73e80f7abd3fd9d29c57c8959d (diff) | |
download | monitoring-plugins-1861e6a2d911e3adf250e3c33720b8f56d0abbdf.tar.gz |
plugins/check_http.c - fix regression introduced in commit 388ea928 (Host header)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
930 | /* check if Host header is explicitly set in options */ | 930 | /* check if Host header is explicitly set in options */ |
931 | if (http_opt_headers_count) { | 931 | if (http_opt_headers_count) { |
932 | for (i = 0; i < http_opt_headers_count ; i++) { | 932 | for (i = 0; i < http_opt_headers_count ; i++) { |
933 | if (strcmp(http_opt_headers[i], "Host: ")) { | 933 | if (strncmp(http_opt_headers[i], "Host:", 5) == 0) { |
934 | force_host_header = http_opt_headers[i]; | 934 | force_host_header = http_opt_headers[i]; |
935 | } | 935 | } |
936 | } | 936 | } |