diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2010-05-21 18:12:38 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2010-05-21 18:12:38 -0600 |
commit | 28d4fe68f8a44924df294473471b47ccb11a2eb1 (patch) | |
tree | fcd07f996b3d80887765088f934b3a5b57cbacad /indra/llmessage | |
parent | 79f697ad513525893fe9ebab62bf2a61186342ec (diff) | |
parent | 81e6f6131bdc0d0c42dc9a21b7842c911f4dd81d (diff) |
Automated merge with ssh://hg.lindenlab.com/dessie/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); |