← Commit list

afdd8f1290

Stefan Eissing
Stefan Eissing
2026-04-11
SUCCESS Duration: 248s

Subject

http: fix auth_used and auth_avail

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/http.c+13 -2
@@ -723,6 +723,10 @@ static CURLcode output_auth_headers(struct Curl_easy *data,
if(auth) {
#ifndef CURL_DISABLE_PROXY
+ if(proxy)
+ data->info.proxyauthpicked = authstatus->picked;
+ else
+ data->info.httpauthpicked = authstatus->picked;
infof(data, "%s auth using %s with user '%s'",
proxy ? "Proxy" : "Server", auth,
proxy ? (data->state.aptr.proxyuser ?
@@ -737,8 +741,13 @@ static CURLcode output_auth_headers(struct Curl_easy *data,
#endif
authstatus->multipass = !authstatus->done;
}
- else
+ else {
authstatus->multipass = FALSE;
+ if(proxy)
+ data->info.proxyauthpicked = 0;
+ else
+ data->info.httpauthpicked = 0;
+ }
return result;
}
@@ -945,8 +954,10 @@ static CURLcode auth_digest(struct Curl_easy *data,
struct auth *authp,
uint32_t *availp)
{
- if(authp->avail & CURLAUTH_DIGEST)
+ if(authp->avail & CURLAUTH_DIGEST) {
+ *availp |= CURLAUTH_DIGEST;
infof(data, "Ignoring duplicate digest auth header.");
+ }
else if(Curl_auth_is_digest_supported()) {
CURLcode result;