aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Barak Shohat <barak@bazzisoft.com> 2021-04-12 19:06:27 +0300
committerGravatar Jan Wagner <waja@cyconet.org> 2021-04-13 12:06:18 +0200
commitf0ac7fcc7c40fab04c00fbbc8c091e89e77b0f74 (patch)
tree5ceae60e534223d3b0e5a5458c2fc7a2a1ff2e5c /plugins
parent5c1d2efd687eaef33b61e4d20706be9fadc0be6a (diff)
downloadmonitoring-plugins-f0ac7fcc7c40fab04c00fbbc8c091e89e77b0f74.tar.gz
check_curl: Fix bug where headers beginning with HTTP_ cause the status line parsing to fail.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 99833f6f..3e0a6f94 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1995,7 +1995,7 @@ curlhelp_parse_statusline (const char *buf, curlhelp_statusline *status_line)
char *first_line_buf;
/* find last start of a new header */
- start = strrstr2 (buf, "\r\nHTTP");
+ start = strrstr2 (buf, "\r\nHTTP/");
if (start != NULL) {
start += 2;
buf = start;