• v0.8.5 c9ee6b52e0

    Fix update "403 Forbidden": reuse banner's info, add User-Agent
    release / Build Windows .zip (push) Canceled after 0s

    LastSkywalker released this 2026-05-28 22:17:09 +03:00 | 45 commits to main since this release

    The banner found v0.8.4 fine, but clicking Обновить showed "github
    releases api: 403 Forbidden". Cause: ApplyUpdate re-queried
    /releases/latest — a second unauthenticated GitHub API call that hit
    the rate limit. The info was already known from the banner's check.

    • Cache the UpdateInfo from any check (background/periodic/manual) on
      the App; ApplyUpdate reuses it and only falls back to a fresh Check
      if there's none. The asset download goes to
      objects.githubusercontent.com (not rate-limited), so the update now
      proceeds even when the API is throttled.
    • Set an explicit User-Agent on all GitHub requests (Check, asset
      download, checksums) — GitHub 403s requests it doesn't like.
    Downloads