mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
plugins/check_http.c - fix regression introduced in commit 388ea928 (Host header)
This commit is contained in:
parent
44ba1f7064
commit
1861e6a2d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue