fix: installer endpoint erlaubt platform=windows

This commit is contained in:
cynfo3000 2026-03-10 01:32:52 +01:00
parent 4f71bd1520
commit 346aea73b9

View File

@ -15,9 +15,9 @@ func (h *Handler) uploadInstaller(w http.ResponseWriter, r *http.Request) {
if platform == "" {
platform = "freebsd"
}
validPlatforms := map[string]bool{"freebsd": true, "linux": true}
validPlatforms := map[string]bool{"freebsd": true, "linux": true, "windows": true}
if !validPlatforms[platform] {
writeError(w, http.StatusBadRequest, "Ungueltige Plattform (freebsd, linux)")
writeError(w, http.StatusBadRequest, "Ungueltige Plattform (freebsd, linux, windows)")
return
}