fix: installer endpoint erlaubt platform=windows
This commit is contained in:
parent
4f71bd1520
commit
346aea73b9
@ -15,9 +15,9 @@ func (h *Handler) uploadInstaller(w http.ResponseWriter, r *http.Request) {
|
|||||||
if platform == "" {
|
if platform == "" {
|
||||||
platform = "freebsd"
|
platform = "freebsd"
|
||||||
}
|
}
|
||||||
validPlatforms := map[string]bool{"freebsd": true, "linux": true}
|
validPlatforms := map[string]bool{"freebsd": true, "linux": true, "windows": true}
|
||||||
if !validPlatforms[platform] {
|
if !validPlatforms[platform] {
|
||||||
writeError(w, http.StatusBadRequest, "Ungueltige Plattform (freebsd, linux)")
|
writeError(w, http.StatusBadRequest, "Ungueltige Plattform (freebsd, linux, windows)")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user