Commit Graph
2 Commits
Author SHA1 Message Date
dualfroz 0fffe4679c downloader: synchronize cancellation with Execute
Guard cancelFunc with the download mutex and remember a cancellation
that arrives before Execute sets up its context, so the request is
never made. Previously a download cancelled in that window was removed
from the cache but kept running with nobody able to stop it.

Fixes pterodactyl/panel#5651
2026-10-13 22:50:57 +02:00
dualfroz e7bb19d447 Identify archives by content before file name
An archive renamed to another extension, such as a .tar.gz renamed to
.zip, was read as a zip inside a gzip stream and failed with "input type
must be an io.ReaderAt and io.Seeker". The format is now taken from the
contents first, and the file name is only used when they are not
recognized.

Fixes pterodactyl/panel#5728
2026-10-13 22:47:20 +02:00