diff options
author | Ben Longbons <brlongbons@gmail.com> | 2010-02-11 20:57:31 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-11 20:58:14 +0100 |
commit | d3edbf792793ef1d4fdd321ef49dc99cdfb83aad (patch) | |
tree | 01062b4314b301f0970452794e1cf69a9ec32c34 /src/net | |
parent | 28fe4ecd5b97d475a1d07e58c7c7c12b5b8ef50a (diff) | |
download | mana-client-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.tar.gz mana-client-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.tar.bz2 mana-client-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.tar.xz mana-client-d3edbf792793ef1d4fdd321ef49dc99cdfb83aad.zip |
Allow redirects when downloading updates
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/download.cpp | 1 |
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) |