summaryrefslogtreecommitdiff
path: root/indra/newview/tests
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-15 18:58:58 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-15 18:58:58 -0400
commit8d3afb35d878e49a505fef26dbbe6ea347966146 (patch)
tree2300f449b9c10a5f6c8a4103a7bb6bb9a06e9e6a /indra/newview/tests
parent039fa244d6e3d5c6014de6a55d86675dd073309c (diff)
parent8868964b549822f260694c2bf26b903dbce8ed0a (diff)
SH-4061 - integrated LLHttpRetryPolicy with new corehttp header parsing
Diffstat (limited to 'indra/newview/tests')
-rwxr-xr-xindra/newview/tests/llhttpretrypolicy_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/tests/llhttpretrypolicy_test.cpp b/indra/newview/tests/llhttpretrypolicy_test.cpp
index 43fc1178cc..42bb9abe90 100755
--- a/indra/newview/tests/llhttpretrypolicy_test.cpp
+++ b/indra/newview/tests/llhttpretrypolicy_test.cpp
@@ -256,7 +256,7 @@ void RetryPolicyTestObject::test<7>()
LLCore::HttpHeaders *headers = new LLCore::HttpHeaders();
response->setStatus(503);
response->setHeaders(headers);
- headers->mHeaders.push_back(HTTP_IN_HEADER_RETRY_AFTER + ": 600");
+ headers->append(HTTP_IN_HEADER_RETRY_AFTER, std::string("600"));
policy.onFailure(response);
should_retry = policy.shouldRetry(seconds_to_wait);
ensure("header 3",should_retry);
@@ -272,7 +272,7 @@ void RetryPolicyTestObject::test<7>()
response->setHeaders(headers);
LLSD sd_headers;
time(&nowseconds);
- headers->mHeaders.push_back(HTTP_IN_HEADER_RETRY_AFTER + ": " + LLDate((F64)nowseconds).asRFC1123());
+ headers->append(HTTP_IN_HEADER_RETRY_AFTER,LLDate((F64)nowseconds).asRFC1123());
policy.onFailure(response);
should_retry = policy.shouldRetry(seconds_to_wait);
ensure("header 4",should_retry);