This commit is contained in:
laodaming 2023-10-11 18:29:58 +08:00
parent 3d000cdc14
commit 91c984db43

View File

@ -124,6 +124,7 @@ func (l *DataTransferLogic) DataTransfer(w http.ResponseWriter, r *http.Request)
//有token是正常用户无则是白板用户也可以连接
if secWebsocketProtocol != "" {
s := strings.Split(secWebsocketProtocol, ",")
fmt.Println("子协议传输值:", s)
if len(s) != 2 {
w.Write([]byte("invalid secWebsocketProtocol param"))
return