Commit 5b889d27 by Juha Kallioinen

[libzypp] Set unrestricted auth curl option

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>
parent b956303f
......@@ -591,6 +591,10 @@ void MediaCurl::setupEasy()
// follow any Location: header that the server sends as part of
// an HTTP header (#113275)
SET_OPTION(CURLOPT_FOLLOWLOCATION, 1L);
// send user credentials to all hosts the site may redirect to.
// see "man curl" and acknowledge the potential security breach when
// using --location-trusted
SET_OPTION(CURLOPT_UNRESTRICTED_AUTH, 1L);
// 3 redirects seem to be too few in some cases (bnc #465532)
SET_OPTION(CURLOPT_MAXREDIRS, 6L);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment