diff options
author | Dave Parks <davep@lindenlab.com> | 2010-11-11 11:22:35 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-11-11 11:22:35 -0600 |
commit | ce667514032510ff1ae47daf0f2727933be849bc (patch) | |
tree | 1d3e304dabc6a6981165f819036af9f4a57347ef /indra/newview/lltexturefetch.cpp | |
parent | c98e6a99f93082ae9cb5c79f72e78ece59582de3 (diff) |
Fix for crash in curl.
Diffstat (limited to 'indra/newview/lltexturefetch.cpp')
-rw-r--r-- | indra/newview/lltexturefetch.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index fafef84aa2..01ea6d9e15 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -51,6 +51,8 @@ #include "llviewerstats.h" #include "llworld.h" +std::string scrub_host_name(std::string http_url); + ////////////////////////////////////////////////////////////////////////////// class LLTextureFetchWorker : public LLWorkerClass { @@ -901,7 +903,7 @@ bool LLTextureFetchWorker::doWork(S32 param) // Will call callbackHttpGet when curl request completes std::vector<std::string> headers; headers.push_back("Accept: image/x-j2c"); - res = mFetcher->mCurlGetRequest->getByteRange(mUrl, headers, offset, mRequestedSize, + res = mFetcher->mCurlGetRequest->getByteRange(scrub_host_name(mUrl), headers, offset, mRequestedSize, new HTTPGetResponder(mFetcher, mID, LLTimer::getTotalTime(), mRequestedSize, offset, true)); } if (!res) |