Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 5b889d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libzypp/zypp/media/MediaCurl.cc
Expand Up @@ -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);

Expand Down

0 comments on commit 5b889d2

Please sign in to comment.