Initialize mMaxUpload/mMaxDownload to 0 (fix #81)

pull/88/head
Vitaliy Filippov 2016-07-06 12:04:15 +03:00
parent 2727160257
commit fbf8f1663f
4 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,11 @@ namespace gr {
namespace http {
Agent::Agent()
{
mMaxUpload = mMaxDownload = 0;
}
long Agent::Put(
const std::string& url,
const std::string& data,

View File

@ -38,6 +38,7 @@ protected:
unsigned mMaxUpload, mMaxDownload ;
public :
Agent() ;
virtual ~Agent() {}
virtual ResponseLog* GetLog() const = 0 ;

View File

@ -72,7 +72,7 @@ struct CurlAgent::Impl
static struct curl_slist* SetHeader( CURL* handle, const Header& hdr );
CurlAgent::CurlAgent() :
CurlAgent::CurlAgent() : Agent(),
m_pimpl( new Impl )
{
m_pimpl->curl = ::curl_easy_init();

View File

@ -32,6 +32,7 @@ namespace gr {
using namespace http ;
AuthAgent::AuthAgent( OAuth2& auth, Agent *real_agent ) :
Agent(),
m_auth ( auth ),
m_agent ( real_agent )
{