Merge pull request #1674 from bazzisoft/bugfix-status-parsing

check_curl: Fix bug where headers beginning with HTTP_ cause the status line parsing to fail
This commit is contained in:
waja 2021-04-13 11:57:42 +02:00 committed by GitHub
commit 9e02b6549a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;