test1625: unit test for Curl_compareheader

Follow-up to 2938cb72e5

Closes #20901
This commit is contained in:
Daniel Stenberg 2026-03-12 09:36:41 +01:00
parent c0f17dee36
commit ed7bfcd17d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 167 additions and 1 deletions

View file

@ -1402,6 +1402,8 @@ CURLcode Curl_http_follow(struct Curl_easy *data, const char *newurl,
*
* Returns TRUE if 'headerline' contains the 'header' with given 'content'
* (within a comma-separated list of tokens). Pass 'header' WITH the colon.
*
* @unittest: 1625
*/
bool Curl_compareheader(const char *headerline, /* line to check */
const char *header, /* header keyword _with_ colon */