ui: Update httplib API

This commit is contained in:
Matt Borgerson 2023-07-20 22:41:15 -07:00 committed by mborgerson
parent 45f3d303b3
commit 8702713963
2 changed files with 0 additions and 3 deletions

View File

@ -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");

View File

@ -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;