diff --git a/Protocols/Websocket.php b/Protocols/Websocket.php index 89b8f1602..5c22970c0 100644 --- a/Protocols/Websocket.php +++ b/Protocols/Websocket.php @@ -299,7 +299,7 @@ protected static function dealHandshake($buffer, $connection) } else { - $connection->send("HTTP/1.1 400 Bad Request\r\n\r\n400 Bad Request
Sec-WebSocket-Key not found.
This is WebSocket service, you can not access via HTTP", true); + $connection->send("HTTP/1.1 400 Bad Request\r\n\r\n400 Bad Request
Sec-WebSocket-Key not found.
This is a WebSocket service and can not be accessed via HTTP.", true); $connection->close(); return 0; }