Explorar el Código

Small performance change

Joanhey hace 6 años
padre
commit
d18273d3fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 					}