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

@ -63,10 +63,9 @@ void OAuth2::Auth( const std::string& auth_code )
http::JsonResponse resp ;
http::CurlAgent http ;
http::Header hdr ;
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() ;
@ -101,10 +100,9 @@ void OAuth2::Refresh( )
http::JsonResponse resp ;
http::CurlAgent http ;
http::Header hdr ;
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() ;
}