http: correct the header error message to say colon

Not semicolon

Reported-by: Gisle Vanem
Ref: #8666
Closes #8667
This commit is contained in:
Daniel Stenberg 2022-04-01 16:03:40 +02:00
parent b716b5aa7e
commit 218cc70028
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -3792,7 +3792,7 @@ static CURLcode verify_header(struct Curl_easy *data)
ptr = memchr(header, ':', hlen);
if(!ptr) {
/* this is bad, bail out */
failf(data, "Header without semicolon");
failf(data, "Header without colon");
return CURLE_WEIRD_SERVER_REPLY;
}
return CURLE_OK;