Initialize HTTP client after the config is loaded

This commit is contained in:
Nik Bougalis
2015-09-27 13:17:20 -07:00
parent 4f9dba22c7
commit a23f6457dc

View File

@@ -270,8 +270,6 @@ void Config::setup (std::string const& strConf, bool bQuiet)
}
}
HTTPClient::initializeSSLContext(*this);
// Update default values
load ();
{
@@ -290,6 +288,8 @@ void Config::setup (std::string const& strConf, bool bQuiet)
boost::str (boost::format ("Can not create %s") % dataDir));
legacy ("database_path", boost::filesystem::absolute (dataDir).string ());
HTTPClient::initializeSSLContext(*this);
}
void Config::load ()