summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b4346f9)
raw | patch | inline | side by side (parent: b4346f9)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 20 Aug 2009 11:48:23 +0000 (13:48 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 20 Aug 2009 11:48:23 +0000 (13:48 +0200) |
This hopefully fixes Debian#541953.
src/apache.c | patch | blob | history | |
src/ascent.c | patch | blob | history | |
src/bind.c | patch | blob | history | |
src/curl.c | patch | blob | history | |
src/nginx.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 4fa7aa1b11a9f8dbf192271abfe65322be0e3806..6489bce261180ca763497f2c148f972185012571 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
}
curl_easy_setopt (curl, CURLOPT_URL, url);
+ curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
if ((verify_peer == NULL) || (strcmp (verify_peer, "true") == 0))
{
diff --git a/src/ascent.c b/src/ascent.c
index 8829e518f3fbfef289b9d74d368fe7ffc1de7bbf..1e7eca1480fee669b888cd279a3f903f7e1ddeb9 100644 (file)
--- a/src/ascent.c
+++ b/src/ascent.c
}
curl_easy_setopt (curl, CURLOPT_URL, url);
+ curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
if ((verify_peer == NULL) || (strcmp (verify_peer, "true") == 0))
curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 1);
diff --git a/src/bind.c b/src/bind.c
index 44efcfd55ba58982d6fdb2244a54ecac3b4e19b1..51a6079bcf36040485ada0e67ce65c164cb92e82 100644 (file)
--- a/src/bind.c
+++ b/src/bind.c
curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION);
curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, bind_curl_error);
curl_easy_setopt (curl, CURLOPT_URL, (url != NULL) ? url : BIND_DEFAULT_URL);
+ curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
return (0);
} /* }}} int bind_init */
diff --git a/src/curl.c b/src/curl.c
index 88b5496d4a4b5f317fc3a0ead52cdaf3aec9c5f3..d3c307e4346b0edf0c18a9bb12a3d0d5a1d42f44 100644 (file)
--- a/src/curl.c
+++ b/src/curl.c
PACKAGE_NAME"/"PACKAGE_VERSION);
curl_easy_setopt (wp->curl, CURLOPT_ERRORBUFFER, wp->curl_errbuf);
curl_easy_setopt (wp->curl, CURLOPT_URL, wp->url);
+ curl_easy_setopt (wp->curl, CURLOPT_FOLLOWLOCATION, 1);
if (wp->user != NULL)
{
diff --git a/src/nginx.c b/src/nginx.c
index cea3c844c5eee6d33ee9b38071e003d196a2633a..53137a71d206dd5ec9218d9697a963a6085c8db3 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
curl_easy_setopt (curl, CURLOPT_URL, url);
}
+ curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
+
if ((verify_peer == NULL) || (strcmp (verify_peer, "true") == 0))
{
curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 1);