mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-28 17:49:11 -04:00
check_curl: Fix bug where headers beginning with HTTP_ cause the status line parsing to fail.
This commit is contained in:
parent
5c1d2efd68
commit
f0ac7fcc7c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue