Pārlūkot izejas kodu

Merge pull request #27 from npcchina/master

if(preg_match("/Sec-WebSocket-Key: *(.*?)\r\n/i", $buffer, $match))
walkor 10 gadi atpakaļ
vecāks
revīzija
b1f19c239d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Protocols/Websocket.php

+ 1 - 1
Protocols/Websocket.php

@@ -293,7 +293,7 @@ class Websocket implements \Workerman\Protocols\ProtocolInterface
             
             // 解析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];
             }