fix(sync): la verification 'depot public' se fait sans jeton, avant tout le reste

Un jeton faux faisait repondre 401 a GitHub avant tout verdict : le refus
d'un depot public ne pouvait pas s'exprimer. Public = visible en anonyme.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-09-18 16:04:50 +01:00
parent a2ac0e393b
commit 67b726e08c
3 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -140,7 +140,8 @@ begin
LHttp.ResponseTimeout := FTimeoutMs;
LHttp.HandleRedirects := False;
LHttp.UserAgent := 'PMServer';
LHttp.CustomHeaders['Authorization'] := 'token ' + FToken;
// SANS JETON, expres : "public" = visible par n'importe qui. Un jeton faux
// faisait repondre 401 avant tout verdict ; prive et anonyme = 404.
try
LResp := LHttp.Get(RepoApiUrl(FBaseUrl));
except