diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-07 17:31:22 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-07 17:31:22 +0100 |
commit | 3057651b1aae8d3ffb98050738b01e5df93eccdf (patch) | |
tree | c3bc6c7f21031d2c289b5d557f22dc726b3724ec /indra/llmessage/llcurl.cpp | |
parent | 87d0c6d583c90ac2f3292be9f71a13648c7d0842 (diff) |
EXT-7145: FIXED: make viewer to handle "URL redirect " for http texture.
Backed out changeset e6feef9704cf to re-introduce Bao's fix
Diffstat (limited to 'indra/llmessage/llcurl.cpp')
-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); |