* Removed the header pass-through

This commit is contained in:
Daniel Legt 2022-06-13 22:19:49 +03:00
parent ca10033ecf
commit 6376fa9128
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func BindSocket(router *gin.RouterGroup) {
func webSocketUpgrade(ctx *gin.Context, padName string) {
conn, err := wsUpgrader.Upgrade(ctx.Writer, ctx.Request, ctx.Request.Header)
conn, err := wsUpgrader.Upgrade(ctx.Writer, ctx.Request, nil)
if err != nil {
fmt.Printf("Failed to set websocket upgrade: %v\n", err)
return