Skip to content

Commit

Permalink
Merge pull request #27 from npcchina/master
Browse files Browse the repository at this point in the history
if(preg_match("/Sec-WebSocket-Key: *(.*?)\r\n/i", $buffer, $match))
  • Loading branch information
walkor committed Jun 15, 2015
2 parents b59eaee + cca0a64 commit b1f19c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Protocols/Websocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit b1f19c2

Please sign in to comment.