Skip to content
Permalink
Browse files
[libzypp] Set unrestricted auth curl option
Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>
  • Loading branch information
kaltsi committed Nov 6, 2013
1 parent b956303 commit 5b889d27aee80bf69a48e135ed525729d15c30d7
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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);

0 comments on commit 5b889d2

Please sign in to comment.