From 4adc16bcdd0db724da58307aed556a76f31befc4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 10 Feb 2009 13:58:07 +0000 Subject: [PATCH] From Jason Beverage, "I've added a small change to the CURL plugin that allows support for HTTP redirects." Merged from svn/trunk: svn merge -r 9743:9744 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk --- 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()