From ff3eedfc732fec8b16f5ac77b9efe49df870ea13 Mon Sep 17 00:00:00 2001 From: tjw Date: Tue, 22 May 2007 02:24:10 +0000 Subject: * (bug 3077) allow cURL to follow HTTP redirects (up to 5) git-svn-id: svn://svn.icculus.org/quake3/trunk@1087 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_curl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'code/client') diff --git a/code/client/cl_curl.c b/code/client/cl_curl.c index 5f6be1f..cb5aa75 100644 --- a/code/client/cl_curl.c +++ b/code/client/cl_curl.c @@ -298,6 +298,8 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL ) CL_cURL_CallbackProgress); qcurl_easy_setopt(clc.downloadCURL, CURLOPT_PROGRESSDATA, NULL); qcurl_easy_setopt(clc.downloadCURL, CURLOPT_FAILONERROR, 1); + qcurl_easy_setopt(clc.downloadCURL, CURLOPT_FOLLOWLOCATION, 1); + qcurl_easy_setopt(clc.downloadCURL, CURLOPT_MAXREDIRS, 5); clc.downloadCURLM = qcurl_multi_init(); if(!clc.downloadCURLM) { qcurl_easy_cleanup(clc.downloadCURL); -- cgit v1.2.3