mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-04-25 16:23:38 -05:00
NAS: Handle missing parameters
This commit is contained in:
parent
ea8af08097
commit
197a889176
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user