summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorBen Longbons <brlongbons@gmail.com>2010-02-11 20:57:31 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-11 20:58:14 +0100
commitd3edbf792793ef1d4fdd321ef49dc99cdfb83aad (patch)
tree01062b4314b301f0970452794e1cf69a9ec32c34 /src/net/download.cpp
parent28fe4ecd5b97d475a1d07e58c7c7c12b5b8ef50a (diff)
downloadmana-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.tar.gz
mana-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.tar.bz2
mana-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.tar.xz
mana-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.zip
Allow redirects when downloading updates
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index d5903551..526f6dad 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -203,6 +203,7 @@ int Download::downloadThread(void *ptr)
{
logger->log("Downloading: %s", d->mUrl.c_str());
+ curl_easy_setopt(d->mCurl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(d->mCurl, CURLOPT_HTTPHEADER, d->mHeaders);
if (d->mOptions.memoryWrite)