From 560cdf458de7cdd6e07752f63e18ad3085056993 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 10 Feb 2009 13:37:16 +0000 Subject: [PATCH] From Jason Beverage, "I've added a small change to the CURL plugin that allows support for HTTP redirects." --- src/osgPlugins/curl/ReaderWriterCURL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgPlugins/curl/ReaderWriterCURL.cpp b/src/osgPlugins/curl/ReaderWriterCURL.cpp index 806c4cac2..136863144 100644 --- a/src/osgPlugins/curl/ReaderWriterCURL.cpp +++ b/src/osgPlugins/curl/ReaderWriterCURL.cpp @@ -83,6 +83,7 @@ EasyCurl::EasyCurl() curl_easy_setopt(_curl, CURLOPT_USERAGENT, "libcurl-agent/1.0"); curl_easy_setopt(_curl, CURLOPT_WRITEFUNCTION, StreamMemoryCallback); + curl_easy_setopt(_curl, CURLOPT_FOLLOWLOCATION, 1); } EasyCurl::~EasyCurl()