summaryrefslogtreecommitdiff
path: root/indra/llmessage
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-06-07 17:08:48 -0400
committerLoren Shih <seraph@lindenlab.com>2010-06-07 17:08:48 -0400
commit52194cac67d1ca7b96957895447202af7d870091 (patch)
treeffa63c5a880a97f0e3ba83cec3d477d9eec11ef9 /indra/llmessage
parente9fdbadea57686e89a4070e7bc3462b9cc7b06a4 (diff)
parent085b2c24f9ded3d0e9a33500a287aaa53e8b7fba (diff)
automated merge
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);