Explorar el Código

if(preg_match("/Sec-WebSocket-Key: *(.*?)\r\n/i", $buffer, $match))

npc hace 10 años
padre
commit
cca0a6463c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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];
             }