Fix spurious redirect in display initial creation.

This commit is contained in:
Patrick Fairbank
2018-09-21 15:08:23 -07:00
parent bff4e9371d
commit da006e6359

View File

@@ -25,7 +25,9 @@ func (web *Web) enforceDisplayConfiguration(w http.ResponseWriter, r *http.Reque
displayId = web.arena.NextDisplayId()
allPresent = false
}
configuration["nickname"] = r.URL.Query().Get("nickname")
if nickname := r.URL.Query().Get("nickname"); nickname != "" {
configuration["nickname"] = nickname
}
// Get display-specific fields from the query parameters.
if defaults != nil {