diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-22 09:04:42 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-22 09:04:42 +0100 |
commit | eeba10255bf41dfe50b975ded16a9fe9c30e4025 (patch) | |
tree | 3f56f1e991aa007bd6a4f1d9784416fcbfb29fd7 /indra/llmessage | |
parent | c73bb0ae17538c0cb509bf6f0945a29c0ffd69dc (diff) | |
parent | 28d4fe68f8a44924df294473471b47ccb11a2eb1 (diff) |
merge from viewer-public
Diffstat (limited to 'indra/llmessage')
-rw-r--r-- | indra/llmessage/llcurl.cpp | 7 |
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); |