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.
parent
6d9452f8d8
commit
1e0069b88d
|
|
@ -371,7 +371,7 @@ void LLHTTPClient::get(const std::string& url, ResponderPtr responder, const LLS
|
|||
// <FS:AW> 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);
|
||||
}
|
||||
// <FS:AW> opensim
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue