Code clean up.
* Removed LLCurlRequest and replaced it's last usage with LLHTTPClient API calls. * Deleted dead code. * Renamed all the get4/post4/put4/getByteRange4 etc, back to their original name without the '4'.
This commit is contained in:
@@ -36,18 +36,18 @@ void LLHTTPClientAdapter::get(const std::string& url, LLCurl::ResponderPtr respo
|
||||
// Pragma is required to stop curl adding "no-cache"
|
||||
// Space is required to stop llurlrequest from turnning off proxying
|
||||
AIHTTPHeaders empty_pragma_header("Pragma", " ");
|
||||
LLHTTPClient::get4(url, responder, empty_pragma_header);
|
||||
LLHTTPClient::get(url, responder, empty_pragma_header);
|
||||
}
|
||||
|
||||
void LLHTTPClientAdapter::get(const std::string& url, LLCurl::ResponderPtr responder, const LLSD& headers)
|
||||
{
|
||||
// as above
|
||||
AIHTTPHeaders empty_pragma_header("Pragma", " ");
|
||||
LLHTTPClient::get4(url, responder, empty_pragma_header);
|
||||
LLHTTPClient::get(url, responder, empty_pragma_header);
|
||||
}
|
||||
|
||||
void LLHTTPClientAdapter::put(const std::string& url, const LLSD& body, LLCurl::ResponderPtr responder)
|
||||
{
|
||||
LLHTTPClient::put4(url, body, responder);
|
||||
LLHTTPClient::put(url, body, responder);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user