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/http_digest.c | |
| parent | 842ec200cd37ae05f2a9c56f2a4040088d2ac917 (diff) | |
libcurl: update to 8.13.0
Diffstat (limited to 'libs/libcurl/src/http_digest.c')
| -rw-r--r-- | libs/libcurl/src/http_digest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/libcurl/src/http_digest.c b/libs/libcurl/src/http_digest.c index f63006f03b..1b4c6109a4 100644 --- a/libs/libcurl/src/http_digest.c +++ b/libs/libcurl/src/http_digest.c @@ -30,6 +30,7 @@ #include "strcase.h"
#include "vauth/vauth.h"
#include "http_digest.h"
+#include "strparse.h"
/* The last 3 #include files should be in this order */
#include "curl_printf.h"
@@ -62,8 +63,7 @@ CURLcode Curl_input_digest(struct Curl_easy *data, return CURLE_BAD_CONTENT_ENCODING;
header += strlen("Digest");
- while(*header && ISBLANK(*header))
- header++;
+ Curl_str_passblanks(&header);
return Curl_auth_decode_digest_http_message(header, digest);
}
@@ -145,15 +145,15 @@ CURLcode Curl_output_digest(struct Curl_easy *data, */
if(authp->iestyle) {
- tmp = strchr((char *)uripath, '?');
+ tmp = strchr((const char *)uripath, '?');
if(tmp) {
- size_t urilen = tmp - (char *)uripath;
+ size_t urilen = tmp - (const char *)uripath;
/* typecast is fine here since the value is always less than 32 bits */
path = (unsigned char *) aprintf("%.*s", (int)urilen, uripath);
}
}
if(!tmp)
- path = (unsigned char *) strdup((char *) uripath);
+ path = (unsigned char *) strdup((const char *) uripath);
if(!path)
return CURLE_OUT_OF_MEMORY;
|
