Skip to content

Commit

Permalink
Merge pull request #11 from JoseRolles/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
nekudo authored Dec 15, 2016
2 parents 9fd3400 + 62e9293 commit 8e3c463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/lib/class.websocket_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function connect($host, $port, $path, $origin = false)

if ($matches) {
$keyAccept = trim($matches[1]);
$expectedResonse = base64_encode(pack('H*', sha1($key . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11')));
$this->_connected = ($keyAccept === $expectedResonse) ? true : false;
$expectedResponse = base64_encode(pack('H*', sha1($key . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11')));
$this->_connected = ($keyAccept === $expectedResponse) ? true : false;
}

return $this->_connected;
Expand Down

0 comments on commit 8e3c463

Please sign in to comment.