[PATCH] By default, libcurl does not appear to follow redirects (#572528).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While I'm enabling that, I might as well also set a max redirect limit
so anaconda doesn't go off looking forever.
---
 loader/urls.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/loader/urls.c b/loader/urls.c
index ed600ed..a372a42 100644
--- a/loader/urls.c
+++ b/loader/urls.c
@@ -124,6 +124,8 @@ int urlinstTransfer(struct loaderData_s *loaderData, struct iurlinfo *ui,
     curl_easy_setopt(curl, CURLOPT_USERAGENT, version);
     curl_easy_setopt(curl, CURLOPT_URL, ui->url);
     curl_easy_setopt(curl, CURLOPT_WRITEDATA, f);
+    curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
+    curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 10);
 
     /* If a proxy was provided, add the options for that now. */
     if (loaderData->proxy && strcmp(loaderData->proxy, "")) {
-- 
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux