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.
Please provide source code and commit sha if you found a bug.
Review existing issues and provide feedback or react to them.
Description
I used gorilla/websocket combined with the gin framework, and an error occurred when connecting to websocket, indicating that the connection was hijacked.
[GIN-debug] [WARNING] Headers were already written. Wanted to override status code 200 with 500
2024/04/11 19:07:59 http: response.Write on hijacked connection from github.com/gin-gonic/gin.(*responseWriter).Write (response_writer.go:83)
[GIN] 2024/04/11 - 19:07:59 | 200 | 17.8844ms | 127.0.0.1 | GET "/wss/push"
Error #01: http: connection has been hijacked
Error #02: http: connection has been hijacked
Description
I used gorilla/websocket combined with the gin framework, and an error occurred when connecting to websocket, indicating that the connection was hijacked.
How to reproduce
Expectations
Actual result
Environment