From 7f45bb8f5b369ae6d952a0f959321af2a57c03fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 11 Jun 2026 15:46:23 +0200 Subject: [PATCH] http_digest: return better error It is not a content encoding error. Found by the GitHub AI thing. Closes #21969 --- lib/http_digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http_digest.c b/lib/http_digest.c index 0e10700407..640553867f 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -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);