Use FSCoreHttpUtil::callbackHttp*Raw routines for flick communication.

master
Nicky 2015-11-05 11:35:07 +01:00
parent a279db4055
commit 28745e58d8
2 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ void exoFlickr::request(const std::string& method, const LLSD& args, response_ca
signRequest(params, "GET", "https://api.flickr.com/services/rest/");
std::string url = LLURI::buildHTTP( "https://api.flickr.com/services/rest/", LLSD::emptyArray(), params ).asString();
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpGet( url, boost::bind( exoFlickrResponse, _1, callback ) );
FSCoreHttpUtil::callbackHttpGetRaw( url, boost::bind( exoFlickrResponse, _1, callback ) );
}
void exoFlickr::signRequest(LLSD& params, std::string method, std::string url)

View File

@ -129,7 +129,7 @@ void exoFlickrAuth::explanationCallback(const LLSD& notification, const LLSD& re
std::string url = LLURI::buildHTTP( "http://www.flickr.com/services/oauth/request_token", LLSD::emptyArray(), params ).asString();
exoFlickrAuth::authorized_callback_t callback = boost::bind(&exoFlickrAuth::gotRequestToken, this, _1, _2);
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpGet( url, boost::bind( exoFlickrAuthResponse, _1, callback ) );
FSCoreHttpUtil::callbackHttpGetRaw( url, boost::bind( exoFlickrAuthResponse, _1, callback ) );
}
else
{
@ -181,7 +181,7 @@ void exoFlickrAuth::gotVerifier(const LLSD& notification, const LLSD& response)
std::string url = LLURI::buildHTTP( "http://www.flickr.com/services/oauth/request_token", LLSD::emptyArray(), params ).asString();
exoFlickrAuth::authorized_callback_t callback = boost::bind(&exoFlickrAuth::gotRequestToken, this, _1, _2);
LLCoreHttpUtil::HttpCoroutineAdapter::callbackHttpGet( url, boost::bind( exoFlickrAuthResponse, _1, callback ) );
FSCoreHttpUtil::callbackHttpGetRaw( url, boost::bind( exoFlickrAuthResponse, _1, callback ) );
}