This commit is contained in:
wangchuxiao
2022-11-17 16:18:13 +08:00
parent fdb0ba4349
commit 4b0a95fc1b
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -81,6 +81,7 @@ func (ws *WServer) wsHandler(w http.ResponseWriter, r *http.Request) {
} else {
var isCompress = false
if r.Header.Get("compression") == "gzip" {
log.NewDebug(operationID, query["sendID"][0], "enable compression")
isCompress = true
}
newConn := &UserConn{conn, new(sync.Mutex), utils.StringToInt32(query["platformID"][0]), 0, isCompress, query["sendID"][0]}