mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 04:57:07 +08:00
Merge fc968d611d476ac6774201477cad0399baa67641 into 704d690ac0e25fcd060ff82f75f913e879e65a3c
This commit is contained in:
commit
4247dddafe
@ -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")
|
||||
|
||||
@ -202,7 +202,7 @@ func main() {
|
||||
```
|
||||
|
||||
```
|
||||
id: 1234; page: 0; name: manu; message: this_is_great
|
||||
id: 1234; page: 1; name: manu; message: this_is_great
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user