fixed query param translate
This commit is contained in:
2
main.go
2
main.go
@@ -611,7 +611,7 @@ func getMatchRounds(c *gin.Context) {
|
|||||||
|
|
||||||
func getMatchChat(c *gin.Context) {
|
func getMatchChat(c *gin.Context) {
|
||||||
id := c.Param("id")
|
id := c.Param("id")
|
||||||
trans := c.PostForm("translate")
|
trans := c.Query("translate")
|
||||||
|
|
||||||
if id == "" {
|
if id == "" {
|
||||||
c.Status(http.StatusBadRequest)
|
c.Status(http.StatusBadRequest)
|
||||||
|
Reference in New Issue
Block a user