Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
server core
panic : wrote more than declared Content-Length
## Environment
- go version: 1.22.5
- gin version (or commit ref): 094b3fdb393ff8eab16ec293bf49513213955523
- operating system:
Description
How to reproduce
package main import ( "github.com/gin-gonic/gin" )
func Response(c gin.Context){ c.String(200, "Hello %s", c.Param("name")) } func main() { g := gin.Default() g.GET("/hello/:name", func(c gin.Context) { go Response(c) }) g.Run(":9000") }
$ curl -i http://localhost:8201/hello/world