CS
This commit is contained in:
parent
87b6b53dce
commit
f9ce641f04
@ -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;
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user