From 714609639f9a316e037252d31437505520a7966f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 18 Dec 2013 15:24:45 -0500 Subject: dload: allow curl to response to any auth challenge Previously, we only allowed the default of responding to basic auth challenges. Mirrors requiring authorization are far and away the edge case, but there's no sense in preventing access to them. Implements FS#38184. Signed-off-by: Dave Reisner Signed-off-by: Allan McRae --- lib/libalpm/dload.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index c74d2ad1..d5906a38 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -301,6 +301,7 @@ static void curl_set_handle_opts(struct dload_payload *payload, curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL); curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, dload_sockopt_cb); curl_easy_setopt(curl, CURLOPT_SOCKOPTDATA, (void *)handle); + curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY); _alpm_log(handle, ALPM_LOG_DEBUG, "url: %s\n", payload->fileurl); -- cgit v1.2.3-70-g09d2