merged compile fixes from LemonBoy #58

pull/40/head
Nestal Wan 2012-06-11 23:37:15 +08:00
parent cf2c827a6e
commit a79edc9c2b
1 changed files with 4 additions and 6 deletions

View File

@ -62,11 +62,10 @@ void OAuth2::Auth( const std::string& auth_code )
"&grant_type=authorization_code" ;
http::JsonResponse resp ;
http::CurlAgent http ;
http::Header hdr ;
http::CurlAgent http ;
DisableLog dlog( log::debug ) ;
http.Post( token_url, post, &resp, hdr ) ;
http.Post( token_url, post, &resp, http::Header() ) ;
Json jresp = resp.Response() ;
m_access = jresp["access_token"].Str() ;
@ -100,11 +99,10 @@ void OAuth2::Refresh( )
"&grant_type=refresh_token" ;
http::JsonResponse resp ;
http::CurlAgent http ;
http::Header hdr ;
http::CurlAgent http ;
DisableLog dlog( log::debug ) ;
http.Post( token_url, post, &resp, hdr ) ;
http.Post( token_url, post, &resp, http::Header() ) ;
m_access = resp.Response()["access_token"].Str() ;
}