mirror of https://github.com/vitalif/grive2
merged compile fixes from LemonBoy #58
parent
cf2c827a6e
commit
a79edc9c2b
|
@ -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() ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue