This commit is contained in:
Chris Boden 2012-06-12 20:49:05 -04:00
parent 87b6b53dce
commit f9ce641f04
2 changed files with 2 additions and 7 deletions

View File

@ -115,12 +115,7 @@ class HandshakeNegotiator implements MessageInterface {
public function disableVersion($versionId) {
unset($this->versions[$versionId]);
$this->versionString = '';
foreach ($this->versions as $id => $object) {
$this->versionString .= "{$id}, ";
}
$this->versionString = substr($this->versionString, 0, -2);
$this->versionString = implode(',', array_keys($this->versions));
return $this;
}

View File

@ -172,6 +172,6 @@ class RFC6455 implements VersionInterface {
* @internal
*/
public function sign($key) {
return base64_encode(sha1($key . static::GUID, 1));
return base64_encode(sha1($key . static::GUID, true));
}
}