fixup change two more ISSPACE to ISBLANK

This commit is contained in:
Daniel Stenberg 2025-02-28 23:29:58 +01:00
parent 1f10242a78
commit 7e1bea28d2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ static CURLcode namevalue(char *header, size_t hlen, unsigned int type,
*value = header;
/* skip all trailing space letters */
while((end > header) && ISSPACE(*end))
while((end > header) && ISBLANK(*end))
*end-- = 0; /* nul terminate */
return CURLE_OK;
}

View File

@ -233,7 +233,7 @@ static CURLcode make_headers(struct Curl_easy *data,
sep = strchr(l->data, ';');
if(!sep || (*sep == ':' && !*(sep + 1)))
continue;
for(ptr = sep + 1; ISSPACE(*ptr); ++ptr)
for(ptr = sep + 1; ISBLANK(*ptr); ++ptr)
;
if(!*ptr && ptr != sep + 1) /* a value of whitespace only */
continue;