Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/q191201771/lal
Browse files Browse the repository at this point in the history
  • Loading branch information
q191201771 committed Sep 8, 2023
2 parents 8c2107a + 6915b75 commit a84c2c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/logic/http_server_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ func (h *HttpServerHandler) ServeSubSession(writer http.ResponseWriter, req *htt
isWebSocket bool
webSocketKey string
)
if req.Header.Get("Connection") == "Upgrade" && req.Header.Get("Upgrade") == "websocket" {
// 火狐浏览器 Connection = [keep-alive, Upgrade]
if strings.Contains(req.Header.Get("Connection"), "Upgrade") && req.Header.Get("Upgrade") == "websocket" {
isWebSocket = true
webSocketKey = req.Header.Get("Sec-WebSocket-Key")
}
Expand Down

0 comments on commit a84c2c3

Please sign in to comment.