← Commit list

9b29495863

Daniel Stenberg
Daniel Stenberg
2026-08-19
SUCCESS Duration: 398s

Subject

http: custom Authorization: header overrides Negotiate

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 -4
@@ -687,10 +687,19 @@ static CURLcode output_auth_headers(struct Curl_easy *data,
#endif
#ifdef USE_SPNEGO
if(authstatus->picked == CURLAUTH_NEGOTIATE) {
- auth = "Negotiate";
- result = Curl_output_negotiate(data, conn, proxy);
- if(result)
- return result;
+ if(
+#ifndef CURL_DISABLE_PROXY
+ (proxy && !Curl_checkProxyheaders(data, conn,
+ STRCONST("Proxy-authorization"))) ||
+#endif
+ (!proxy && !Curl_checkheaders(data, STRCONST("Authorization")))) {
+ auth = "Negotiate";
+ result = Curl_output_negotiate(data, conn, proxy);
+ if(result)
+ return result;
+ }
+ else
+ authstatus->done = TRUE;
}
else
#endif