commit 63e1c59909a0236e1d7635dcf3916225fa9f9410 parent 867318b9ea9368648e17ab49e9973436366c2ffc Author: jatinchowdhury18 <jatinchowdhury18@gmail.com> Date: Sun, 17 Apr 2022 23:25:15 +0100 Update to new way of handling URL::createInputStream (#256) * Update to new way of handling URL::createInputStream * Apply clang-format Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Diffstat:
M | Plugin/Source/GUI/AutoUpdating.cpp | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Plugin/Source/GUI/AutoUpdating.cpp b/Plugin/Source/GUI/AutoUpdating.cpp @@ -196,7 +196,9 @@ File AutoUpdater::getUpdateCheckFile() String AutoUpdater::getLatestVersion() { URL latestVersionURL (versionURL); - std::unique_ptr<InputStream> inStream (latestVersionURL.createInputStream (false, nullptr, nullptr, {}, 5000)); + auto inStream = latestVersionURL.createInputStream (URL::InputStreamOptions (URL::ParameterHandling::inAddress) + .withConnectionTimeoutMs (5000) + .withNumRedirectsToFollow (5)); if (inStream == nullptr) return {};