Correct the query parameter name.

This commit is contained in:
Charles 2015-07-13 10:13:26 +08:00
parent fd5d4294a5
commit e6cd47a004
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func main() {
router.POST("/post", func(c *gin.Context) {
id := c.Query("id")
page := c.DefaultQuery("id", "0")
page := c.DefaultQuery("page", "0")
name := c.PostForm("name")
message := c.PostForm("message")