summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-17 11:32:23 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-17 11:32:23 -0400
commitb224b8978adfd42c89e1c66bc5495ead8fa1e85d (patch)
treea5dc3df8cc2d2ee953ba5c0a810bb92420e15651 /indra
parent8cf67fe50cfa070e5aa786acdb9bce58c350d840 (diff)
SH-4061 WIP - request headers for server-bake images
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/lltexturefetch.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index 774c925fa1..346374ef4e 100755
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -1524,12 +1524,14 @@ bool LLTextureFetchWorker::doWork(S32 param)
<< LL_ENDL;
// Will call callbackHttpGet when curl request completes
+ // Only server bake images use the returned headers currently, for getting retry-after field.
+ HttpOptions *options = (mFTType == FTT_SERVER_BAKE) ? mFetcher->mHttpOptionsWithHeaders: mFetcher->mHttpOptions;
mHttpHandle = mFetcher->mHttpRequest->requestGetByteRange(mHttpPolicyClass,
mWorkPriority,
mUrl,
mRequestedOffset,
mRequestedSize,
- mFetcher->mHttpOptions,
+ options,
mFetcher->mHttpHeaders,
this);
}