summaryrefslogtreecommitdiff
path: root/indra/llmessage
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-06-10 14:05:04 +0300
committerVadim Savchuk <vsavchuk@productengine.com>2010-06-10 14:05:04 +0300
commitc83a0105080981fd78ce3276e85837f8849176be (patch)
treed55867dea06d73d79c815af7d57cb43c359c2bac /indra/llmessage
parent1856436fb93c7dc45821c1791dbbced26151b2c0 (diff)
parent79a3870c4fdaaeb68f8ff70857e8a48e0af3b5ce (diff)
Merge from default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/llmessage')
-rw-r--r--indra/llmessage/llcurl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp
index 91e11b8c0d..36874a5d48 100644
--- a/indra/llmessage/llcurl.cpp
+++ b/indra/llmessage/llcurl.cpp
@@ -365,6 +365,13 @@ U32 LLCurl::Easy::report(CURLcode code)
responseReason = strerror(code) + " : " + mErrorBuffer;
}
+ if(responseCode >= 300 && responseCode < 400) //redirect
+ {
+ char new_url[512] ;
+ curl_easy_getinfo(mCurlEasyHandle, CURLINFO_REDIRECT_URL, new_url);
+ responseReason = new_url ; //get the new URL.
+ }
+
if (mResponder)
{
mResponder->completedRaw(responseCode, responseReason, mChannels, mOutput);