check_curl: Fix bug where headers beginning with HTTP_ cause the status line parsing to fail.

This commit is contained in:
Barak Shohat 2021-04-12 19:06:27 +03:00 committed by Jan Wagner
parent 5c1d2efd68
commit f0ac7fcc7c

View file

@ -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;