From 1e0069b88d246bfa4abdcb33722d01a0d0c6b47b Mon Sep 17 00:00:00 2001 From: Techwolf Lupindo Date: Fri, 3 Jan 2014 01:39:09 -0500 Subject: [PATCH] Fix bug exposed by GCC 4.7. Some compilers will happly convert time_t to a bool, therefore time_t if_modified_since gets passed as bool follow_redirects instead of time_t if_modified_since. Result of this bug is all files are download with each startup of the client, causing increased server load. --- indra/llmessage/llhttpclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp index 37eae84996..b25f231164 100644 --- a/indra/llmessage/llhttpclient.cpp +++ b/indra/llmessage/llhttpclient.cpp @@ -371,7 +371,7 @@ void LLHTTPClient::get(const std::string& url, ResponderPtr responder, const LLS // opensim void LLHTTPClient::getIfModified(const std::string& url, ResponderPtr responder, const time_t &if_modified_since, const LLSD& headers, const F32 timeout) { - request(url, LLURLRequest::HTTP_GET, NULL, responder, timeout, headers, if_modified_since); + request(url, LLURLRequest::HTTP_GET, NULL, responder, timeout, headers, true, if_modified_since); } // opensim