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

View File

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

View File

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