http_digest: return better error

It is not a content encoding error.

Found by the GitHub AI thing.

Closes #21969
This commit is contained in:
Daniel Stenberg 2026-06-11 15:46:23 +02:00
parent 08ae71f33d
commit 7f45bb8f5b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -54,7 +54,7 @@ CURLcode Curl_input_digest(struct Curl_easy *data,
}
if(!checkprefix("Digest", header) || !ISBLANK(header[6]))
return CURLE_BAD_CONTENT_ENCODING;
return CURLE_AUTH_ERROR;
header += strlen("Digest");
curlx_str_passblanks(&header);