mirror of https://github.com/xemu-project/xemu.git
ui: Update httplib API
This commit is contained in:
parent
45f3d303b3
commit
8702713963
|
@ -72,7 +72,6 @@ bool CompatibilityReport::Send()
|
|||
#endif
|
||||
|
||||
cli.set_follow_location(true);
|
||||
cli.set_timeout_sec(5);
|
||||
// cli.enable_server_certificate_verification(true); // FIXME: Package cert bundle
|
||||
|
||||
auto res = cli.Post("/compatibility", s, "application/json");
|
||||
|
|
|
@ -150,7 +150,6 @@ void Updater::check_for_update_internal()
|
|||
{
|
||||
httplib::SSLClient cli(version_host, 443);
|
||||
cli.set_follow_location(true);
|
||||
cli.set_timeout_sec(5);
|
||||
auto res = cli.Get(version_uri, [this](uint64_t len, uint64_t total) {
|
||||
m_update_percentage = len*100/total;
|
||||
return !m_should_cancel;
|
||||
|
@ -198,7 +197,6 @@ void Updater::update_internal()
|
|||
{
|
||||
httplib::SSLClient cli(download_host, 443);
|
||||
cli.set_follow_location(true);
|
||||
cli.set_timeout_sec(5);
|
||||
auto res = cli.Get(download_uri, [this](uint64_t len, uint64_t total) {
|
||||
m_update_percentage = len*100/total;
|
||||
return !m_should_cancel;
|
||||
|
|
Loading…
Reference in New Issue