summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-07-28 17:17:46 (GMT)
committerAndreas Baumann <mail@andreasbaumann.cc>2021-07-28 17:17:46 (GMT)
commit67088216abd866cc28dc438af1e89ca9de60c48d (patch)
tree17705ecdbf22cc15d7c7b03a9e4ae1e896396b83 /plugins/check_http.c
parentde5503063e4ea455a7a0a57afcc467a2041c859f (diff)
parent5a2400cc2a9e76787320632ea402f6d8378d5124 (diff)
downloadmonitoring-plugins-67088216abd866cc28dc438af1e89ca9de60c48d.tar.gz
Merge branch 'master' into feature_check_curlrefs/pull/1700/head
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 0b71266..34fb4f0 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1453,8 +1453,8 @@ redir (char *pos, char *status_line)
1453 !strncmp(server_address, addr, MAX_IPV4_HOSTLENGTH) && 1453 !strncmp(server_address, addr, MAX_IPV4_HOSTLENGTH) &&
1454 (host_name && !strncmp(host_name, addr, MAX_IPV4_HOSTLENGTH)) && 1454 (host_name && !strncmp(host_name, addr, MAX_IPV4_HOSTLENGTH)) &&
1455 !strcmp(server_url, url)) 1455 !strcmp(server_url, url))
1456 die (STATE_WARNING, 1456 die (STATE_CRITICAL,
1457 _("HTTP WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"), 1457 _("HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n"),
1458 type, addr, i, url, (display_html ? "</A>" : "")); 1458 type, addr, i, url, (display_html ? "</A>" : ""));
1459 1459
1460 strcpy (server_type, type); 1460 strcpy (server_type, type);