From a79edc9c2b6b87261f024cdbe29e7e0e67b81d07 Mon Sep 17 00:00:00 2001 From: Nestal Wan Date: Mon, 11 Jun 2012 23:37:15 +0800 Subject: [PATCH] merged compile fixes from LemonBoy #58 --- libgrive/src/protocol/OAuth2.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libgrive/src/protocol/OAuth2.cc b/libgrive/src/protocol/OAuth2.cc index b2ec434..5d2c172 100644 --- a/libgrive/src/protocol/OAuth2.cc +++ b/libgrive/src/protocol/OAuth2.cc @@ -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() ; }