瀏覽代碼

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

npc 10 年之前
父節點
當前提交
cca0a6463c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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];
             }