Cleanup
CS Removed a var_dump Removed garbage from a unit test
This commit is contained in:
parent
ef995377d1
commit
71a2b33056
@ -40,8 +40,8 @@ class Hixie76 implements VersionInterface {
|
||||
, 'Sec-WebSocket-Location' => 'ws://' . $request->getHeader('Host', true) . $request->getPath()
|
||||
);
|
||||
|
||||
$response = new Response('101', $headers, $body);
|
||||
$response->setStatus('101', 'WebSocket Protocol Handshake');
|
||||
$response = new Response(101, $headers, $body);
|
||||
$response->setStatus(101, 'WebSocket Protocol Handshake');
|
||||
|
||||
return $response;
|
||||
}
|
||||
@ -68,7 +68,7 @@ class Hixie76 implements VersionInterface {
|
||||
}
|
||||
|
||||
public function generateKeyNumber($key) {
|
||||
if (0 === substr_count($key, ' ')) {
|
||||
if (0 === mb_substr_count($key, ' ', 'ASCII')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,6 @@ use Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier;
|
||||
use Guzzle\Http\Message\RequestInterface;
|
||||
use Guzzle\Http\Message\Response;
|
||||
|
||||
|
||||
/**
|
||||
* @link http://tools.ietf.org/html/rfc6455
|
||||
*/
|
||||
|
@ -171,7 +171,6 @@ class WsServer implements MessageComponentInterface {
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function onError(ConnectionInterface $conn, \Exception $e) {
|
||||
var_dump($e);
|
||||
if ($conn->WebSocket->established) {
|
||||
$this->_decorating->onError($this->connections[$conn], $e);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user