You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Environment
go version: 1.22.2
gin version (or commit ref):1.9.1
operating system:windows 11
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: