NAS: Handle missing parameters

This commit is contained in:
MikeIsAStar 2023-12-10 15:10:00 -05:00
parent ea8af08097
commit 197a889176

View File

@ -48,7 +48,7 @@ func handlePayloadRequest(moduleName string, w http.ResponseWriter, r *http.Requ
}
// Read payload ID (g) from URL
game := query["g"][0]
game := query.Get("g")
if len(game) != 7 && len(game) != 9 {
logging.Error(moduleName, "Invalid or missing game ID:", aurora.Cyan(game))
return