mirror of https://github.com/JustKato/FreePad.git
* Removed the header pass-through
This commit is contained in:
parent
ca10033ecf
commit
6376fa9128
|
@ -40,7 +40,7 @@ func BindSocket(router *gin.RouterGroup) {
|
||||||
|
|
||||||
func webSocketUpgrade(ctx *gin.Context, padName string) {
|
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 {
|
if err != nil {
|
||||||
fmt.Printf("Failed to set websocket upgrade: %v\n", err)
|
fmt.Printf("Failed to set websocket upgrade: %v\n", err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue