diff --git a/src/network/HttpDownloader.cpp b/src/network/HttpDownloader.cpp index aaa01345..7936a737 100644 --- a/src/network/HttpDownloader.cpp +++ b/src/network/HttpDownloader.cpp @@ -7,7 +7,7 @@ #include bool HttpDownloader::fetchUrl(const std::string& url, std::string& outContent) { - const std::unique_ptr client(new WiFiClientSecure); + const std::unique_ptr client(new WiFiClientSecure()); client->setInsecure(); HTTPClient http; @@ -33,7 +33,7 @@ bool HttpDownloader::fetchUrl(const std::string& url, std::string& outContent) { HttpDownloader::DownloadError HttpDownloader::downloadToFile(const std::string& url, const std::string& destPath, ProgressCallback progress) { - const std::unique_ptr client(new WiFiClientSecure); + const std::unique_ptr client(new WiFiClientSecure()); client->setInsecure(); HTTPClient http;