From cca0a6463c451b44d72e98fad48a10eba871c67b Mon Sep 17 00:00:00 2001 From: npc Date: Mon, 15 Jun 2015 16:03:55 +0800 Subject: [PATCH] if(preg_match("/Sec-WebSocket-Key: *(.*?)\r\n/i", $buffer, $match)) --- Protocols/Websocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Protocols/Websocket.php b/Protocols/Websocket.php index 1e65e4994..6f6f6d76a 100644 --- a/Protocols/Websocket.php +++ b/Protocols/Websocket.php @@ -293,7 +293,7 @@ protected static function dealHandshake($buffer, $connection) // 解析Sec-WebSocket-Key $Sec_WebSocket_Key = ''; - if(preg_match("/Sec-WebSocket-Key: *(.*?)\r\n/", $buffer, $match)) + if(preg_match("/Sec-WebSocket-Key: *(.*?)\r\n/i", $buffer, $match)) { $Sec_WebSocket_Key = $match[1]; }