diff options
author | dartraiden <wowemuh@gmail.com> | 2025-04-21 09:33:29 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2025-04-21 09:50:38 +0300 |
commit | cf6ba06cd445f1f4554701637d5bab581acfba98 (patch) | |
tree | 0d9b618df1c8f888cb37221be0590f4a677fe477 /libs/libcurl/src/headers.c | |
parent | 842ec200cd37ae05f2a9c56f2a4040088d2ac917 (diff) |
libcurl: update to 8.13.0
Diffstat (limited to 'libs/libcurl/src/headers.c')
-rw-r--r-- | libs/libcurl/src/headers.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/libcurl/src/headers.c b/libs/libcurl/src/headers.c index def9605b47..daae4fe45b 100644 --- a/libs/libcurl/src/headers.c +++ b/libs/libcurl/src/headers.c @@ -29,6 +29,7 @@ #include "strcase.h"
#include "sendf.h"
#include "headers.h"
+#include "strparse.h"
/* The last 3 #include files should be in this order */
#include "curl_printf.h"
@@ -208,14 +209,14 @@ static CURLcode namevalue(char *header, size_t hlen, unsigned int type, else
return CURLE_BAD_FUNCTION_ARGUMENT;
- /* skip all leading space letters */
- while(*header && ISBLANK(*header))
+ /* skip all leading blank letters */
+ while(ISBLANK(*header))
header++;
*value = header;
/* skip all trailing space letters */
- while((end > header) && ISSPACE(*end))
+ while((end > header) && ISBLANK(*end))
*end-- = 0; /* nul terminate */
return CURLE_OK;
}
@@ -235,7 +236,7 @@ static CURLcode unfold_value(struct Curl_easy *data, const char *value, oalloc = olen + offset + 1;
/* skip all trailing space letters */
- while(vlen && ISSPACE(value[vlen - 1]))
+ while(vlen && ISBLANK(value[vlen - 1]))
vlen--;
/* save only one leading space */
|