From 0b1da901f178de01bd869ebacb37615d1211ee35 Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Wed, 22 Apr 2026 19:25:07 -0700 Subject: [PATCH] fix(githubsync): skip download if file already exists on device --- plugins/githubsync/GitHubSyncPlugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/githubsync/GitHubSyncPlugin.cpp b/plugins/githubsync/GitHubSyncPlugin.cpp index a984948..ac6050b 100644 --- a/plugins/githubsync/GitHubSyncPlugin.cpp +++ b/plugins/githubsync/GitHubSyncPlugin.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -74,8 +75,11 @@ void saveLocalSha(const std::string& filename, const std::string& sha) { bool downloadFile(const std::string& downloadUrl, const std::string& pat, const std::string& destPath, const std::string& name, const std::string& sha) { + WiFiClientSecure client; + client.setInsecure(); + HTTPClient http; - http.begin(downloadUrl.c_str()); + http.begin(client, downloadUrl.c_str()); http.setTimeout(30000); http.addHeader("Authorization", ("token " + pat).c_str()); http.addHeader("User-Agent", "CrossPoint-GitHubSync/1.0");