Просмотр исходного кода

fix boardid -> gameid in showAscii

Harry de Boer 10 лет назад
Родитель
Сommit
a5980c12e1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      battlecamp-go-gameserver/gameserver/urlrouter.go

+ 1 - 1
battlecamp-go-gameserver/gameserver/urlrouter.go

@@ -157,7 +157,7 @@ func showBoard(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
 func showAsciiBoard(w http.ResponseWriter, req *http.Request, ps httprouter.Params) {
 	w.Header().Set("Content-Type", "text/plain;charset=utf-8")
 
-	id, _ := strconv.ParseInt(ps.ByName("boardid"), 10, 64)
+	id, _ := strconv.ParseInt(ps.ByName("gameid"), 10, 64)
 	b := gameServer.GetGame(id).Board.String()
 	w.Write([]byte(b))
 }