Skip to content

Commit

Permalink
websocket tips
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Jun 18, 2015
1 parent 8aa265c commit fa57e4a
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 @@ -299,7 +299,7 @@ protected static function dealHandshake($buffer, $connection)
}
else
{
$connection->send("HTTP/1.1 400 Bad Request\r\n\r\n<b>400 Bad Request</b><br>Sec-WebSocket-Key not found.<br>This is WebSocket service, you can not access via HTTP", true);
$connection->send("HTTP/1.1 400 Bad Request\r\n\r\n<b>400 Bad Request</b><br>Sec-WebSocket-Key not found.<br>This is a WebSocket service and can not be accessed via HTTP.", true);
$connection->close();
return 0;
}
Expand Down

0 comments on commit fa57e4a

Please sign in to comment.