mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:13:33 +03:00
fixup hash the unquoted URI
This commit is contained in:
parent
e130c8ff61
commit
4aa5e2b4ed
2 changed files with 5 additions and 3 deletions
|
|
@ -783,7 +783,7 @@ static CURLcode auth_create_digest_http_message(
|
|||
goto oom;
|
||||
}
|
||||
|
||||
hashthis = curl_maprintf("%s:%s", request, uri_quoted);
|
||||
hashthis = curl_maprintf("%s:%s", request, uripath);
|
||||
if(!hashthis) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto oom;
|
||||
|
|
@ -908,8 +908,10 @@ static CURLcode auth_create_digest_http_message(
|
|||
if(digest->opaque) {
|
||||
/* Append the opaque */
|
||||
char *opaque_quoted = auth_digest_string_quoted(digest->opaque);
|
||||
if(!opaque_quoted)
|
||||
if(!opaque_quoted) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto oom;
|
||||
}
|
||||
result = curlx_dyn_addf(&response, ", opaque=\"%s\"", opaque_quoted);
|
||||
curlx_free(opaque_quoted);
|
||||
if(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue