Kaynağa Gözat

Small performance change

Joanhey 6 yıl önce
ebeveyn
işleme
d18273d3fb
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -160,7 +160,7 @@ class Http
                     $_SERVER['CONTENT_LENGTH'] = $value;
                     break;
                 case 'UPGRADE':
-					if($value=='websocket'){
+					if($value === 'websocket'){
 						$connection->protocol = "\\Workerman\\Protocols\\Websocket";
 						return \Workerman\Protocols\Websocket::input($recv_buffer,$connection);
 					}