From cf6ba06cd445f1f4554701637d5bab581acfba98 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Mon, 21 Apr 2025 09:33:29 +0300 Subject: libcurl: update to 8.13.0 --- libs/libcurl/src/http_digest.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/libcurl/src/http_digest.c') 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; -- cgit v1.2.3