2018-08-14 06:35:13 +03:00
|
|
|
- With issues:
|
|
|
|
- Use the search tool before opening a new issue.
|
|
|
|
- Please provide source code and commit sha if you found a bug.
|
|
|
|
- Review existing issues and provide feedback or react to them.
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2019-10-15 09:25:55 +03:00
|
|
|
<!-- Description of a problem -->
|
|
|
|
|
|
|
|
## How to reproduce
|
|
|
|
|
|
|
|
<!-- The smallest possible code example to show the problem that can be compiled, like -->
|
|
|
|
```
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-12-12 14:48:00 +03:00
|
|
|
"git.internal/re/gin"
|
2019-10-15 09:25:55 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
g := gin.Default()
|
|
|
|
g.GET("/hello/:name", func(c *gin.Context) {
|
|
|
|
c.String(200, "Hello %s", c.Param("name"))
|
|
|
|
})
|
|
|
|
g.Run(":9000")
|
|
|
|
}
|
|
|
|
```
|
2018-08-14 06:35:13 +03:00
|
|
|
|
2019-10-15 09:25:55 +03:00
|
|
|
## Expectations
|
|
|
|
|
|
|
|
<!-- Your expectation result of 'curl' command, like -->
|
|
|
|
```
|
|
|
|
$ curl http://localhost:8201/hello/world
|
|
|
|
Hello world
|
|
|
|
```
|
|
|
|
|
|
|
|
## Actual result
|
|
|
|
|
|
|
|
<!-- Actual result showing the problem -->
|
|
|
|
```
|
|
|
|
$ curl -i http://localhost:8201/hello/world
|
|
|
|
<YOUR RESULT>
|
|
|
|
```
|
|
|
|
|
|
|
|
## Environment
|
|
|
|
|
|
|
|
- go version:
|
|
|
|
- gin version (or commit ref):
|
|
|
|
- operating system:
|