You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/06/24 19:50:10 UTC

git commit: Added support for following redirects to the fetcher (via stout/net).

Repository: mesos
Updated Branches:
  refs/heads/master 6c26c79af -> d47b1d91d


Added support for following redirects to the fetcher (via stout/net).

I've added a call to set CURLOPT_FOLLOWLOCATION to true, which allows
the fetcher (when using http[s]://) to follow 30X redirects when
fetching.

Review: https://reviews.apache.org/r/22675


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d47b1d91
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d47b1d91
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d47b1d91

Branch: refs/heads/master
Commit: d47b1d91d59c6bda303ea8c2c235231c66576477
Parents: 6c26c79
Author: Tom Arnfeld <ta...@me.com>
Authored: Tue Jun 24 10:47:59 2014 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Tue Jun 24 10:49:40 2014 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d47b1d91/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
index 97215af..43b1bde 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
@@ -83,6 +83,7 @@ inline Try<int> download(const std::string& url, const std::string& path)
 
   curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
   curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
+  curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
 
   FILE* file = fdopen(fd.get(), "w");
   if (file == NULL) {