Refuse plain http and manifests without a size and sha256 in the launcher, stop oversize downloads, and keep the token on its host.

Plain http goes only to this PC (the tests' servers), a redirect to http is refused, the Authorization header is
dropped when a redirect leaves its host, a download that runs past its size stops at once, and a manifest file entry
needs a plain file name, a size and a sha256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-09 05:57:20 -05:00
parent 93a38b5d12
commit 938676d57f
4 changed files with 87 additions and 9 deletions

View File

@@ -102,7 +102,9 @@ A release carries `NX2navi-update.json` (version, notes, and the size and sha256
Preview channel) that has the manifest. A private repository answers only with a token (`github_token` in
`data/launcher.json`); players need a public one. `feed_repo` in `data/launcher.json` points one launcher at another
repository for testing; `{"type": "url", "url": ".../NX2navi-update.json"}` in feed.json reads one manifest
directly.
directly. Every address is https (plain http only to this PC), a redirect to http is refused, and the token is not
sent on when a redirect leaves the host it was meant for (`launcher/net.py`). A manifest that does not give a file's
size and sha256 is refused.
`jobs.UpdateDownloadJob`, before the restart (`launcher/updater.py`):