aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index b73e2d97..9dc27656 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];
}
}