From: Michael Tremer Date: Mon, 12 Aug 2024 17:23:14 +0000 (+0000) Subject: xfer: Send authentication headers straight away when asked to X-Git-Tag: 0.9.30~1213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0507b9932b919e974067abdad0b949cf20ebe8ed;p=pakfire.git xfer: Send authentication headers straight away when asked to We don't need to check whether the server does not require authentication first. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/xfer.c b/src/libpakfire/xfer.c index c532a0d90..40ca7dac0 100644 --- a/src/libpakfire/xfer.c +++ b/src/libpakfire/xfer.c @@ -1233,7 +1233,7 @@ int pakfire_xfer_prepare(struct pakfire_xfer* xfer, struct pakfire_progress* pro // Authentication if (xfer->auth) { // Request SPNEGO - r = curl_easy_setopt(xfer->handle, CURLOPT_HTTPAUTH, CURLAUTH_NEGOTIATE|CURLAUTH_ONLY); + r = curl_easy_setopt(xfer->handle, CURLOPT_HTTPAUTH, CURLAUTH_NEGOTIATE); if (r) { CTX_ERROR(xfer->ctx, "Could not enable SPNEGO\n"); return r;